Object/Poem/APNIC.pm untested

filter: Statementstmt 0.0% 0 / 23 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 0.0% 0 / 4 Podpod 0.0% 0 / 1 totaltotal 0.0% 0 / 28 CC 1 SCAR 6.9
CC
1
Cov
0%
new
2.0
BEGIN
2.0
BEGIN
2.0
CRAP 2.0
1 package Net::Whois::Object::Poem::APNIC;
2  
3 use strict;
4 use warnings;
5 use base qw/Net::Whois::Object/;
6  
7 # whois -h whois.apnic.net -t poem
8 # % [whois.apnic.net]
9 # % Whois data copyright terms http://www.apnic.net/db/dbcopyright.html
10 #
11 # poem: [mandatory] [single] [primary/lookup key]
12 # descr: [optional] [multiple] [ ]
13 # form: [mandatory] [single] [inverse key]
14 # text: [mandatory] [multiple] [ ]
15 # author: [optional] [multiple] [inverse key]
16 # remarks: [optional] [multiple] [ ]
17 # notify: [optional] [multiple] [inverse key]
18 # mnt-by: [mandatory] [single] [inverse key]
19 # changed: [mandatory] [multiple] [ ]
20 # source: [mandatory] [single] [ ]
21 #
22 # % This query was served by the APNIC Whois Service version 1.68.5 (WHOIS1)
23  
24 __PACKAGE__->attributes( 'primary', [ 'poem' ] );
25 __PACKAGE__->attributes( 'mandatory', [ 'poem', 'form', 'text', 'mnt_by', 'changed', 'source' ] );
26 __PACKAGE__->attributes( 'optional', [ 'descr', 'author', 'remarks', 'notify' ] );
27 __PACKAGE__->attributes( 'single', [ 'poem', 'form', 'mnt_by', 'source' ] );
28 __PACKAGE__->attributes( 'multiple', [ 'descr', 'text', 'author', 'remarks', 'notify', 'changed' ] );
29  
30  
31 =head1 NAME
32  
33 Net::Whois::Object::Poem::APNIC - an object representation of the RPSL Poem block
34  
35 =head1 DESCRIPTION
36  
37 The poem object contains a poem that is submitted by a user. This object is
38 included in the database to show that engineers do have a sense of humour.
39  
40 =head1 METHODS
41  
42 =head2 B<new( %options )>
43  
44 Constructor for the Net::Whois::Object::Poem::APNIC class
45  
46 =cut
47  
48 sub new {
49 my ( $class, @options ) = @_;
50  
51 my $self = bless {}, $class;
52 $self->_init(@options);
53  
54 return $self;
55 }
56  
57 =head2 B<descr( [$descr] )>
58  
59 Accessor to the descr attribute.
60 Accepts an optional descr line to be added to the descr array,
61 always return the current descr array.
62  
63 =head2 B<text( [$text] )>
64  
65 Accessor to the text attribute.
66 Accepts an optional text line to be added to the text array,
67 always return the current text array.
68  
69 =head2 B<admin_c( [$contact] )>
70  
71 Accessor to the admin_c attribute.
72 Accepts an optional contact to be added to the admin_c array,
73 always return the current admin_c array.
74  
75 =head2 B<author( [$author] )>
76  
77 Accessor to the author attribute.
78 Accepts an optional author to be added to the author array,
79 always return the current author array.
80  
81 =head2 B<remarks( [$remark] )>
82  
83 Accessor to the remarks attribute.
84 Accepts an optional remark to be added to the remarks array,
85 always return the current remarks array.
86  
87 =head2 B<notify( [$notify] )>
88  
89 Accessor to the notify attribute.
90 Accepts an optional notify value to be added to the notify array,
91 always return the current notify array.
92  
93 =head2 B<mnt_by( [$mnt_by] )>
94  
95 Accessor to the mnt_by attribute.
96 Accepts an optional mnt_by value to be added to the mnt_by array,
97 always return the current mnt_by array.
98  
99 =head2 B<changed( [$changed] )>
100  
101 Accessor to the changed attribute.
102 Accepts an optional changed value to be added to the changed array,
103 always return the current changed array.
104  
105 =head2 B<source( [$source] )>
106  
107 Accessor to the source attribute.
108 Accepts an optional source, always return the current source.
109  
110 =head2 B<form( [$form] )>
111  
112 Accessor to the form attribute.
113 Accepts an optional form, always return the current form.
114 This attribute specifies the identifier of a registered poem type.
115  
116 =head2 B<poem( [$poem] )>
117  
118 Accessor to the poem attribute.
119 Accepts an optional poem, always return the current poem.
120  
121 =cut
122  
123 1;