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