Contacts/Type/IM.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/Hobby.pm ↑ Summary Contacts/Type/Jot.pm »
1 package WWW::Google::Contacts::Type::IM;
2 {
3 19 $WWW::Google::Contacts::Type::IM::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 => [qw( work home netmeeting other )],
15 default_type => 'other',
16 };
17  
18 19 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 19 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 ▶no Moose;
Subroutine BEGIN: called CC=1 SCAR=0.0
37 19 __PACKAGE__->meta->make_immutable;
38 19 1;
39 __END__
« Contacts/Type/Hobby.pm ↑ Summary Contacts/Type/Jot.pm »