File Coverage

blib/lib/WWW/Google/Contacts/Type/IM.pm
Criterion Covered Total %
statement 15 15 100.0
branch n/a
condition n/a
subroutine 5 5 100.0
pod n/a
total 20 20 100.0


line stmt bran cond sub pod time code
1             package WWW::Google::Contacts::Type::IM;
2             {
3             $WWW::Google::Contacts::Type::IM::VERSION = '0.39';
4             }
5              
6 19     19   114 use Moose;
  19         42  
  19         318  
7 19     19   128564 use MooseX::Types::Moose qw( Str );
  19         45  
  19         244  
8 19     19   98935 use WWW::Google::Contacts::InternalTypes qw( Rel );
  19         49  
  19         182  
9 19     19   45864 use WWW::Google::Contacts::Meta::Attribute::Trait::XmlField;
  19         42  
  19         2231  
10              
11             extends 'WWW::Google::Contacts::Type::Base';
12              
13             with 'WWW::Google::Contacts::Roles::HasTypeAndLabel' => {
14             valid_types => [qw( work home netmeeting other )],
15             default_type => 'other',
16             };
17              
18             has protocol => (
19             isa => Rel,
20             is => 'rw',
21             traits => ['XmlField'],
22             xml_key => 'protocol',
23             predicate => 'has_protocol',
24             coerce => 1,
25             );
26              
27             has value => (
28             isa => Str,
29             is => 'rw',
30             traits => ['XmlField'],
31             xml_key => 'address',
32             predicate => 'has_value',
33             required => 1,
34             );
35              
36 19     19   124 no Moose;
  19         40  
  19         118  
37             __PACKAGE__->meta->make_immutable;
38             1;
39             __END__