| 1 | package WWW::Google::Contacts::Type::PhoneNumber; | ||
| 2 | { | ||
| 3 | 19 | $WWW::Google::Contacts::Type::PhoneNumber::VERSION = '0.39'; | |
| 4 | } | ||
| 5 | |||
| 6 | 19 | ▶ | use Moose; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 7 | 19 | ▶ | use MooseX::Types::Moose qw( Str ); |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 8 | 19 | ▶ | use WWW::Google::Contacts::InternalTypes qw( Rel ); |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 9 | 19 | ▶ | use WWW::Google::Contacts::Meta::Attribute::Trait::XmlField; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 10 | |||
| 11 | 19 | extends 'WWW::Google::Contacts::Type::Base'; | |
| 12 | |||
| 13 | 19 | with 'WWW::Google::Contacts::Roles::HasTypeAndLabel' => { | |
| 14 | valid_types => [ | ||
| 15 | qw( assistant callback car company_main fax home home_fax | ||
| 16 | isdn main mobile other_fax pager radio telex tty_tdd | ||
| 17 | work work_fax work_mobile work_pager | ||
| 18 | ) | ||
| 19 | ], | ||
| 20 | default_type => 'mobile', | ||
| 21 | }; | ||
| 22 | |||
| 23 | 19 | has value => ( | |
| 24 | isa => Str, | ||
| 25 | is => 'rw', | ||
| 26 | traits => ['XmlField'], | ||
| 27 | xml_key => 'content', | ||
| 28 | predicate => 'has_content', | ||
| 29 | required => 1, | ||
| 30 | ); | ||
| 31 | |||
| 32 | 19 | ▶ | no Moose; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 33 | 19 | __PACKAGE__->meta->make_immutable; | |
| 34 | 19 | 1; | |
| 35 | __END__ | ||