| 1 | package Net::Google::PicasaWeb::Base; | ||
| 2 | { | ||
| 3 | $Net::Google::PicasaWeb::Base::VERSION = '0.12'; | ||
| 4 | } | ||
| 5 | use Moose; | ||
| 6 | |||
| 7 | # ABSTRACT: base class | ||
| 8 | |||
| 9 | with 'MooseX::Role::Matcher' => { default_match => 'id' }; | ||
| 10 | |||
| 11 | |||
| 12 | has service => ( | ||
| 13 | is => 'rw', | ||
| 14 | isa => 'Net::Google::PicasaWeb', | ||
| 15 | required => 1, | ||
| 16 | weak_ref => 1, | ||
| 17 | ); | ||
| 18 | |||
| 19 | |||
| 20 | has twig => ( | ||
| 21 | is => 'rw', | ||
| 22 | isa => 'XML::Twig::Elt', | ||
| 23 | handles => { | ||
| 24 | xml_text => 'first_child_text', | ||
| 25 | }, | ||
| 26 | ); | ||
| 27 | |||
| 28 | |||
| 29 | __PACKAGE__->meta->make_immutable; | ||
| 30 | |||
| 31 | 1; | ||
| 32 | |||
| 33 | __END__ |