File Coverage

blib/lib/WWW/Google/Contacts/Type/Jot.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::Jot;
2             {
3             $WWW::Google::Contacts::Type::Jot::VERSION = '0.39';
4             }
5              
6 19     19   115 use Moose;
  19         44  
  19         156  
7 19     19   127412 use MooseX::Types::Moose qw( Str );
  19         54  
  19         232  
8 19     19   99287 use WWW::Google::Contacts::InternalTypes qw( Rel );
  19         45  
  19         174  
9 19     19   45897 use WWW::Google::Contacts::Meta::Attribute::Trait::XmlField;
  19         47  
  19         1910  
10              
11             extends 'WWW::Google::Contacts::Type::Base';
12              
13             has type => (
14             isa => Str, # not a full url rel :-/
15             is => 'rw',
16             traits => ['XmlField'],
17             xml_key => 'rel',
18             predicate => 'has_type',
19             required => 1,
20             );
21              
22             has value => (
23             isa => Str,
24             is => 'rw',
25             traits => ['XmlField'],
26             xml_key => 'content',
27             predicate => 'has_value',
28             required => 1,
29             );
30              
31 19     19   108 no Moose;
  19         45  
  19         116  
32             __PACKAGE__->meta->make_immutable;
33             1;
34             __END__