| 1 | package Net::isoHunt::Response; | ||
| 2 | 2 | ▶ | BEGIN { |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 3 | 2 | $Net::isoHunt::Response::VERSION = '0.102770'; | |
| 4 | } | ||
| 5 | |||
| 6 | # ABSTRACT: Provides accessors to various response fields | ||
| 7 | |||
| 8 | 2 | ▶ | use Moose; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 9 | |||
| 10 | 2 | has [ | |
| 11 | qw{ | ||
| 12 | title | ||
| 13 | link | ||
| 14 | description | ||
| 15 | language | ||
| 16 | category | ||
| 17 | last_build_date | ||
| 18 | pubDate | ||
| 19 | } | ||
| 20 | ] => ( | ||
| 21 | is => 'ro', | ||
| 22 | isa => 'Str', | ||
| 23 | ); | ||
| 24 | |||
| 25 | 2 | has [ | |
| 26 | qw{ | ||
| 27 | max_results | ||
| 28 | ttl | ||
| 29 | total_results | ||
| 30 | censored | ||
| 31 | } | ||
| 32 | ] => ( | ||
| 33 | is => 'ro', | ||
| 34 | isa => 'Int', | ||
| 35 | ); | ||
| 36 | |||
| 37 | 2 | has 'image' => ( | |
| 38 | is => 'ro', | ||
| 39 | isa => 'Net::isoHunt::Response::Image', | ||
| 40 | ); | ||
| 41 | |||
| 42 | 2 | has 'items' => ( | |
| 43 | is => 'ro', | ||
| 44 | isa => 'ArrayRef[Net::isoHunt::Response::Item]', | ||
| 45 | ); | ||
| 46 | |||
| 47 | 2 | __PACKAGE__->meta()->make_immutable(); | |
| 48 | |||
| 49 | 2 | ▶ | no Moose; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 50 | |||
| 51 | 2 | 1; | |
| 52 | |||
| 53 | |||
| 54 | |||
| 55 | =pod | ||
| 56 | |||
| 57 | =head1 NAME | ||
| 58 | |||
| 59 | Net::isoHunt::Response - Provides accessors to various response fields | ||
| 60 | |||
| 61 | =head1 VERSION | ||
| 62 | |||
| 63 | version 0.102770 | ||
| 64 | |||
| 65 | =head1 ATTRIBUTES | ||
| 66 | |||
| 67 | =head2 C<title> | ||
| 68 | |||
| 69 | =head2 C<link> | ||
| 70 | |||
| 71 | =head2 C<description> | ||
| 72 | |||
| 73 | =head2 C<language> | ||
| 74 | |||
| 75 | =head2 C<category> | ||
| 76 | |||
| 77 | =head2 C<max_results> | ||
| 78 | |||
| 79 | =head2 C<ttl> | ||
| 80 | |||
| 81 | =head2 C<image> | ||
| 82 | |||
| 83 | Returns a L<Net::isoHunt::Response::Image> object. | ||
| 84 | |||
| 85 | =head2 C<last_build_date> | ||
| 86 | |||
| 87 | =head2 C<pub_date> | ||
| 88 | |||
| 89 | =head2 C<total_results> | ||
| 90 | |||
| 91 | =head2 C<censored> | ||
| 92 | |||
| 93 | =head2 C<items> | ||
| 94 | |||
| 95 | Returns an array reference to L<Net::isoHunt::Response::Item> objects. | ||
| 96 | |||
| 97 | =head1 AUTHOR | ||
| 98 | |||
| 99 | Alan Haggai Alavi <alanhaggai@alanhaggai.org> | ||
| 100 | |||
| 101 | =head1 COPYRIGHT AND LICENSE | ||
| 102 | |||
| 103 | This software is copyright (c) 2010 by Alan Haggai Alavi. | ||
| 104 | |||
| 105 | This is free software; you can redistribute it and/or modify it under | ||
| 106 | the same terms as the Perl 5 programming language system itself. | ||
| 107 | |||
| 108 | =cut | ||
| 109 | |||
| 110 | |||
| 111 | __END__ | ||