| File: | lib/WWW/Google/Contacts/Type/Category.pm |
| Coverage: | 100.0% |
| line | stmt | bran | cond | sub | pod | time | code |
|---|---|---|---|---|---|---|---|
| 1 | package WWW::Google::Contacts::Type::Category; | ||||||
| 2 | |||||||
| 3 | 12 12 12 | 89 36 106 | use Moose; | ||||
| 4 | 12 12 12 | 136 40 92 | use MooseX::Types::Moose qw( Str ); | ||||
| 5 | 12 12 12 | 192 30 122 | use WWW::Google::Contacts::InternalTypes qw( Rel ); | ||||
| 6 | 12 12 12 | 211 53 264 | use WWW::Google::Contacts::Meta::Attribute::Trait::XmlField; | ||||
| 7 | |||||||
| 8 | extends 'WWW::Google::Contacts::Type::Base'; | ||||||
| 9 | |||||||
| 10 | has type => ( | ||||||
| 11 | isa => Rel, | ||||||
| 12 | is => 'rw', | ||||||
| 13 | traits => [ 'XmlField' ], | ||||||
| 14 | xml_key => 'scheme', | ||||||
| 15 | predicate => 'has_type', | ||||||
| 16 | coerce => 1, | ||||||
| 17 | required => 1, | ||||||
| 18 | ); | ||||||
| 19 | |||||||
| 20 | has term => ( | ||||||
| 21 | isa => Rel, | ||||||
| 22 | is => 'rw', | ||||||
| 23 | traits => [ 'XmlField' ], | ||||||
| 24 | xml_key => 'term', | ||||||
| 25 | predicate => 'has_term', | ||||||
| 26 | coerce => 1, | ||||||
| 27 | required => 1, | ||||||
| 28 | ); | ||||||
| 29 | |||||||
| 30 | 12 12 12 | 122 38 98 | no Moose; | ||||
| 31 | __PACKAGE__->meta->make_immutable; | ||||||
| 32 | 1; | ||||||