Data::Semantic::URI::fax - Semantic data class for fax URIs


Data-Semantic-URI documentation Contained in the Data-Semantic-URI distribution.

Index


Code Index:

NAME

Top

Data::Semantic::URI::fax - Semantic data class for fax URIs

VERSION

Top

version 1.100850

SYNOPSIS

Top

    my $obj = Data::Semantic::URI::fax->new;
    if ($obj->is_valid('...')) {
       #  ...
    }

DESCRIPTION

Top

This class can tell whether a value is a fax URI, as defined by RFC 2006. The valid() method will respect the nofuture boolean attribute and the inherited keep boolean attribute.

If nofuture is set, future extensions are not allowed.

If keep is set, kept() will return a hash with the following keys/value pairs:

URI

The complete URI.

scheme

The scheme.

phone_number

The phone number, including any possible add-ons like ISDN sub-address, a post dial part, area specifier, service provider, etc.

INSTALLATION

Top

See perlmodinstall for information and options on installing Perl modules.

BUGS AND LIMITATIONS

Top

No bugs have been reported.

Please report any bugs or feature requests through the web interface at http://rt.cpan.org/Public/Dist/Display.html?Name=Data-Semantic-URI.

AVAILABILITY

Top

The latest version of this module is available from the Comprehensive Perl Archive Network (CPAN). Visit http://www.perl.com/CPAN/ to find a CPAN site near you, or see http://search.cpan.org/dist/Data-Semantic-URI/.

The development version lives at http://github.com/hanekomu/Data-Semantic-URI/. Instead of sending patches, please fork this project using the standard git and github infrastructure.

AUTHOR

Top

  Marcel Gruenauer <marcel@cpan.org>

COPYRIGHT AND LICENSE

Top


Data-Semantic-URI documentation Contained in the Data-Semantic-URI distribution.

use 5.008;
use strict;
use warnings;

package Data::Semantic::URI::fax;
our $VERSION = '1.100850';
# ABSTRACT: Semantic data class for fax URIs
use parent qw(Data::Semantic::URI);
__PACKAGE__->mk_boolean_accessors(qw(nofuture));
use constant REGEXP_KEYS => qw(URI fax);
use constant KEEP_KEYS   => qw(URI scheme phone_number);

sub flags {
    my $self  = shift;
    my @flags = $self->SUPER::flags(@_);
    push @flags => 'nofuture' if $self->nofuture;
    @flags;
}
1;


__END__