Contacts/Type/ContactEvent.pm

filter: Statementstmt 100% 23 / 23 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 100% 5 / 5 Podpod n/a totaltotal 100% 28 / 28 CC 1 SCAR 0.0
CC
1
Cov
100%
BEGIN
1.0
BEGIN
1.0
BEGIN
1.0
CRAP 1.0
« Contacts/Type/Category.pm ↑ Summary Contacts/Type/ExternalId.pm »
1 package WWW::Google::Contacts::Type::ContactEvent;
2 {
3 19 $WWW::Google::Contacts::Type::ContactEvent::VERSION = '0.38';
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 When );
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 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 );
20  
21 19 has label => (
22 isa => Str,
23 is => 'rw',
24 traits => ['XmlField'],
25 xml_key => 'label',
26 predicate => 'has_label',
27 );
28  
29 19 has when => (
30 isa => When,
31 is => 'rw',
32 traits => ['XmlField'],
33 xml_key => 'gd:when',
34 predicate => 'has_when',
35 coerce => 1,
36 required => 1,
37 );
38  
39 19 ▶no Moose;
Subroutine BEGIN: called CC=1 SCAR=0.0
40 19 __PACKAGE__->meta->make_immutable;
41 19 1;
42 __END__
« Contacts/Type/Category.pm ↑ Summary Contacts/Type/ExternalId.pm »