| File: | lib/WWW/Google/Contacts/Type/GroupMembership.pm |
| Coverage: | 84.2% |
| line | stmt | bran | cond | sub | pod | time | code |
|---|---|---|---|---|---|---|---|
| 1 | package WWW::Google::Contacts::Type::GroupMembership; | ||||||
| 2 | |||||||
| 3 | 12 12 12 | 91 39 97 | use Moose; | ||||
| 4 | 12 12 12 | 137 39 110 | use MooseX::Types::Moose qw( Str ); | ||||
| 5 | 12 12 12 | 127 38 102 | use WWW::Google::Contacts::Meta::Attribute::Trait::XmlField; | ||||
| 6 | |||||||
| 7 | extends 'WWW::Google::Contacts::Type::Base'; | ||||||
| 8 | |||||||
| 9 | has href => ( | ||||||
| 10 | isa => Str, | ||||||
| 11 | is => 'rw', | ||||||
| 12 | traits => [ 'XmlField' ], | ||||||
| 13 | xml_key => 'href', | ||||||
| 14 | predicate => 'has_href', | ||||||
| 15 | required => 1, | ||||||
| 16 | ); | ||||||
| 17 | |||||||
| 18 | sub search_field { | ||||||
| 19 | 0 | 0 | return 'href'; | ||||
| 20 | } | ||||||
| 21 | |||||||
| 22 | 12 12 12 | 112 41 87 | no Moose; | ||||
| 23 | __PACKAGE__->meta->make_immutable; | ||||||
| 24 | 1; | ||||||