| 1 | use strict; | ||
| 2 | use warnings; | ||
| 3 | |||
| 4 | package Net::Google::PicasaWeb::Base; | ||
| 5 | use Moose; | ||
| 6 | |||
| 7 | with 'MooseX::Role::Matcher' => { default_match => 'id' }; | ||
| 8 | |||
| 9 | =head1 NAME | ||
| 10 | |||
| 11 | Net::Google::PicasaWeb::Base - base class | ||
| 12 | |||
| 13 | =head1 DESCRIPTION | ||
| 14 | |||
| 15 | This defines some common tools available to many of the classes included with L<Net::Google::PicasaWeb>. | ||
| 16 | |||
| 17 | =head1 ATTRIBUTES | ||
| 18 | |||
| 19 | These are common attributes shared by subclasses. | ||
| 20 | |||
| 21 | =head2 service | ||
| 22 | |||
| 23 | This is a link back to the parent L<Net::Google::PicasaWeb> class responsible for communicating with the Picasa Web API. | ||
| 24 | |||
| 25 | =cut | ||
| 26 | |||
| 27 | has service => ( | ||
| 28 | is => 'rw', | ||
| 29 | isa => 'Net::Google::PicasaWeb', | ||
| 30 | required => 1, | ||
| 31 | weak_ref => 1, | ||
| 32 | ); | ||
| 33 | |||
| 34 | =head2 twig | ||
| 35 | |||
| 36 | This is the L<XML::Twig::Elt> the class was last updated with. This may be used to get more detailed information out of the elements in case there are features of it you want, but this library does not yet provide. | ||
| 37 | |||
| 38 | B<Note:> There is no guarantee that future versions of this library will be based upon L<XML::Twig>. As such, you should avoid depending on this if you can. | ||
| 39 | |||
| 40 | =cut | ||
| 41 | |||
| 42 | has twig => ( | ||
| 43 | is => 'rw', | ||
| 44 | isa => 'XML::Twig::Elt', | ||
| 45 | ); | ||
| 46 | |||
| 47 | =head1 AUTHOR | ||
| 48 | |||
| 49 | Andrew Sterling Hanenkamp, C<< <hanenkamp at cpan.org> >> | ||
| 50 | |||
| 51 | =head1 COPYRIGHT & LICENSE | ||
| 52 | |||
| 53 | Copyright 2008 Andrew Sterling Hanenkamp | ||
| 54 | |||
| 55 | This program is free software; you can redistribute it and/or modify it | ||
| 56 | under the same terms as Perl itself. | ||
| 57 | |||
| 58 | =cut | ||
| 59 | |||
| 60 | 1; |