File Coverage

File:lib/WWW/Google/Contacts/Type/ContactEvent.pm
Coverage:100.0%

linestmtbrancondsubpodtimecode
1package WWW::Google::Contacts::Type::ContactEvent;
2
3
12
12
12
94
40
100
use Moose;
4
12
12
12
140
39
107
use MooseX::Types::Moose qw( Str );
5
12
12
12
126
43
101
use WWW::Google::Contacts::InternalTypes qw( Rel When );
6
12
12
12
129
41
93
use WWW::Google::Contacts::Meta::Attribute::Trait::XmlField;
7
8extends 'WWW::Google::Contacts::Type::Base';
9
10has type => (
11    isa => Str, # not a full url rel :-/
12    is => 'rw',
13    traits => [ 'XmlField' ],
14    xml_key => 'rel',
15    predicate => 'has_type',
16);
17
18has label => (
19    isa => Str,
20    is => 'rw',
21    traits => [ 'XmlField' ],
22    xml_key => 'label',
23    predicate => 'has_label',
24);
25
26has when => (
27    isa => When,
28    is => 'rw',
29    traits => [ 'XmlField' ],
30    xml_key => 'gd:when',
31    predicate => 'has_when',
32    coerce => 1,
33    required => 1,
34);
35
36
12
12
12
113
37
97
no Moose;
37__PACKAGE__->meta->make_immutable;
381;