File Coverage

blib/lib/Net/Whois/Object/Poem.pm
Criterion Covered Total %
statement 13 13 100.0
branch n/a
condition n/a
subroutine 4 4 100.0
pod 1 1 100.0
total 18 18 100.0


line stmt bran cond sub pod time code
1             package Net::Whois::Object::Poem;
2              
3 1     1   83946 use strict;
  1         12  
  1         33  
4 1     1   5 use warnings;
  1         2  
  1         35  
5 1     1   6 use base qw/Net::Whois::Object/;
  1         2  
  1         673  
6              
7             #######################################################################################
8             # The following lines where auto-generated by 'perl whois_to_attribute.pl Poem'
9              
10             # % This is the RIPE Database query service.
11             # % The objects are in RPSL format.
12             # %
13             # % The RIPE Database is subject to Terms and Conditions.
14             # % See http://www.ripe.net/db/support/db-terms-conditions.pdf
15             #
16             # poem: [mandatory] [single] [primary/lookup key]
17             # descr: [optional] [multiple] [ ]
18             # form: [mandatory] [single] [inverse key]
19             # text: [mandatory] [multiple] [ ]
20             # author: [optional] [multiple] [inverse key]
21             # remarks: [optional] [multiple] [ ]
22             # notify: [optional] [multiple] [inverse key]
23             # mnt-by: [mandatory] [single] [inverse key]
24             # created: [generated] [single] [ ]
25             # last-modified: [generated] [single] [ ]
26             # source: [mandatory] [single] [ ]
27             #
28             # % This query was served by the RIPE Database Query Service version 1.99 (BLAARKOP)
29             #
30             #
31             __PACKAGE__->attributes( 'primary', [ 'poem' ] );
32             __PACKAGE__->attributes( 'mandatory', [ 'poem', 'form', 'text', 'mnt_by', 'source' ] );
33             __PACKAGE__->attributes( 'optional', [ 'descr', 'author', 'remarks', 'notify', 'created', 'last_modified' ] );
34             __PACKAGE__->attributes( 'single', [ 'poem', 'form', 'mnt_by', 'created', 'last_modified', 'source' ] );
35             __PACKAGE__->attributes( 'multiple', [ 'descr', 'text', 'author', 'remarks', 'notify' ] );
36              
37             # End of auto-generated lines
38             #######################################################################################
39              
40             =head1 NAME
41              
42             Net::Whois::Object::Poem - an object representation of the RPSL Poem block
43              
44             =head1 DESCRIPTION
45              
46             The poem object contains a poem that is submitted by a user. This object is
47             included in the database to show that engineers do have a sense of humour.
48              
49             =head1 METHODS
50              
51             =head2 B
52              
53             Constructor for the Net::Whois::Object::Poem class
54              
55             =cut
56              
57             sub new {
58 1     1 1 6 my ( $class, @options ) = @_;
59              
60 1         3 my $self = bless {}, $class;
61 1         11 $self->_init(@options);
62              
63 1         3 return $self;
64             }
65              
66             =head2 B
67              
68             Accessor to the descr attribute.
69             Accepts an optional descr line to be added to the descr array,
70             always return the current descr array.
71              
72             =head2 B
73              
74             Accessor to the text attribute.
75             Accepts an optional text line to be added to the text array,
76             always return the current text array.
77              
78             =head2 B
79              
80             Accessor to the admin_c attribute.
81             Accepts an optional contact to be added to the admin_c array,
82             always return the current admin_c array.
83              
84             =head2 B
85              
86             Accessor to the author attribute.
87             Accepts an optional author to be added to the author array,
88             always return the current author array.
89              
90             =head2 B
91              
92             Accessor to the remarks attribute.
93             Accepts an optional remark to be added to the remarks array,
94             always return the current remarks array.
95              
96             =head2 B
97              
98             Accessor to the notify attribute.
99             Accepts an optional notify value to be added to the notify array,
100             always return the current notify array.
101              
102             =head2 B
103              
104             Accessor to the mnt_by attribute.
105             Accepts an optional mnt_by value to be added to the mnt_by array,
106             always return the current mnt_by array.
107              
108             =head2 B
109              
110             Accessor to the changed attribute.
111             Accepts an optional changed value to be added to the changed array,
112             always return the current changed array.
113              
114             =head2 B
115              
116             Accessor to the source attribute.
117             Accepts an optional source, always return the current source.
118              
119             =head2 B
120              
121             Accessor to the form attribute.
122             Accepts an optional form, always return the current form.
123             This attribute specifies the identifier of a registered poem type.
124              
125             =head2 B
126              
127             Accessor to the poem attribute.
128             Accepts an optional poem, always return the current poem.
129              
130             =cut
131              
132             1;