| 1 | package Net::Whois::Object::Poem; | ||
| 2 | |||
| 3 | 1 | ▶ | use strict; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 4 | 1 | ▶ | use warnings; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 5 | 1 | ▶ | use base qw/Net::Whois::Object/; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 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 | 1 | __PACKAGE__->attributes( 'primary', [ 'poem' ] ); | |
| 32 | 1 | __PACKAGE__->attributes( 'mandatory', [ 'poem', 'form', 'text', 'mnt_by', 'source' ] ); | |
| 33 | 1 | __PACKAGE__->attributes( 'optional', [ 'descr', 'author', 'remarks', 'notify', 'created', 'last_modified' ] ); | |
| 34 | 1 | __PACKAGE__->attributes( 'single', [ 'poem', 'form', 'mnt_by', 'created', 'last_modified', 'source' ] ); | |
| 35 | 1 | __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<new( %options )> | ||
| 52 | |||
| 53 | Constructor for the Net::Whois::Object::Poem class | ||
| 54 | |||
| 55 | =cut | ||
| 56 | |||
| 57 | 1 | ▶ | sub new { |
|
Subroutine
new: called CC=1 SCAR=0.0
Pod
documented
| |||
| 58 | 1 | my ( $class, @options ) = @_; | |
| 59 | |||
| 60 | 1 | my $self = bless {}, $class; | |
| 61 | 1 | $self->_init(@options); | |
| 62 | |||
| 63 | 1 | return $self; | |
| 64 | } | ||
| 65 | |||
| 66 | =head2 B<descr( [$descr] )> | ||
| 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<text( [$text] )> | ||
| 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<admin_c( [$contact] )> | ||
| 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<author( [$author] )> | ||
| 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<remarks( [$remark] )> | ||
| 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<notify( [$notify] )> | ||
| 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<mnt_by( [$mnt_by] )> | ||
| 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<changed( [$changed] )> | ||
| 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<source( [$source] )> | ||
| 115 | |||
| 116 | Accessor to the source attribute. | ||
| 117 | Accepts an optional source, always return the current source. | ||
| 118 | |||
| 119 | =head2 B<form( [$form] )> | ||
| 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<poem( [$poem] )> | ||
| 126 | |||
| 127 | Accessor to the poem attribute. | ||
| 128 | Accepts an optional poem, always return the current poem. | ||
| 129 | |||
| 130 | =cut | ||
| 131 | |||
| 132 | 1 | 1; | |