Permalink
Browse files

Add abuse_c attribute to AutNum object

  • Loading branch information...
1 parent 53840f3 commit 60c4d51134394868dc5227c4eb3d2bc8e3b3d4f5 @arhuman committed Jul 31, 2013
Showing with 8 additions and 2 deletions.
  1. +2 −2 lib/Net/Whois/Object/AutNum.pm
  2. +6 −0 t/110-AutNum.t
@@ -34,8 +34,8 @@ use base qw/Net::Whois::Object/;
__PACKAGE__->attributes( 'primary', ['aut_num'] );
__PACKAGE__->attributes( 'mandatory', [ 'aut_num', 'as_name', 'descr', 'tech_c', 'admin_c', 'mnt_by', 'changed', 'source' ] );
-__PACKAGE__->attributes( 'optional', [ 'member_of', 'import', 'mp_import', 'export', 'mp_export', 'default', 'mp_default', 'remarks', 'org', 'notify', 'mnt_lower', 'mnt_routes' ] );
-__PACKAGE__->attributes( 'single', [ 'aut_num', 'as_name', 'org', 'source' ] );
+__PACKAGE__->attributes( 'optional', [ 'member_of', 'import', 'mp_import', 'export', 'mp_export', 'default', 'mp_default', 'remarks', 'org', 'notify', 'mnt_lower', 'mnt_routes', 'abuse_c' ] );
+__PACKAGE__->attributes( 'single', [ 'aut_num', 'as_name', 'org', 'source', 'abuse_c' ] );
__PACKAGE__->attributes( 'multiple', [ 'descr', 'member_of', 'import', 'mp_import', 'export', 'mp_export', 'default', 'mp_default', 'remarks', 'admin_c', 'tech_c', 'notify', 'mnt_lower', 'mnt_routes', 'mnt_by', 'changed' ] );
View
@@ -65,6 +65,11 @@ is_deeply( $object->tech_c(), ['NC345-RIPE'], 'tech_c properly parsed' );
$object->tech_c('Added tech_c');
is( $object->tech_c()->[1], 'Added tech_c', 'tech_c properly added' );
+# Test 'abuse_c'
+$tested{'abuse_c'}++;
+is_deeply( $object->abuse_c(), 'NC789-RIPE', 'abuse_c properly parsed' );
+
+is( $object->tech_c()->[1], 'Added tech_c', 'tech_c properly added' );
# Test 'mnt_by'
$tested{'mnt_by'}++;
is_deeply( $object->mnt_by(), [ 'RIPE-NCC-END-MNT', 'MAIN-FR-MNT' ], 'mnt_by properly parsed' );
@@ -148,6 +153,7 @@ descr: FRANCE
org: ORG-MISC01-RIPE
admin-c: NC123-RIPE
tech-c: NC345-RIPE
+abuse-c: NC789-RIPE
mnt-by: RIPE-NCC-END-MNT
mnt-by: MAIN-FR-MNT
notify: MAIN-FR-MNT

0 comments on commit 60c4d51

Please sign in to comment.