File Coverage

blib/lib/Net/Whois/Object/Information.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::Information;
2              
3 5     5   72791 use strict;
  5         21  
  5         182  
4 5     5   27 use warnings;
  5         10  
  5         182  
5 5     5   26 use base qw/Net::Whois::Object/;
  5         9  
  5         1535  
6              
7             __PACKAGE__->attributes( 'mandatory', ['comment'] );
8             __PACKAGE__->attributes( 'optional', [] );
9             __PACKAGE__->attributes( 'multiple', ['comment'] );
10              
11             =head1 NAME
12              
13             Net::Whois::Object::Information - an object representation of the RPSL Information block
14              
15             =head1 DESCRIPTION
16              
17             output starting with the % sign is either a server response code or
18             an informational message. A comment contains a white space after the
19             % sign, while server messages start right after the % sign. Please
20             see Appendix A2 "RIPE Database response codes and messages" for more
21             information.
22              
23             * An empty line ("\n\n") is an object delimiter.
24              
25             * Two empty lines mean the end of a server response. The "members:" attribute lists the members of the set. The
26             "members:" attribute is a list of AS numbers, or other as-set names.
27              
28             =head1 METHODS
29              
30             =head2 new ( @options )
31              
32             Constructor for the Net::Whois::Object::Information class
33              
34             =cut
35              
36             sub new {
37 40     40 1 139 my ( $class, @options ) = @_;
38              
39 40         207 my $self = bless {}, $class;
40 40         187 $self->_init(@options);
41              
42 40         115 return $self;
43             }
44              
45             =head2 B
46              
47             Accessor to the comment attribute.
48             Accepts an optional comment to be added to the comment array,
49             always return the current comment array.
50              
51             =cut
52              
53             1;