Class: Arin::RWS::NetBlock

Inherits:
Object
  • Object
show all
Defined in:
lib/arin-rws/netblock.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(data) ⇒ NetBlock

Returns a new instance of NetBlock.



7
8
9
10
11
12
13
# File 'lib/arin-rws/netblock.rb', line 7

def initialize(data)
	self.start_address = data['startAddress']['$']
	self.end_address = data['endAddress']['$']
	self.cidr_length = data['cidrLength']['$']
	self.type = data['type']['$']
	self.description = data['description']['$']
end

Instance Attribute Details

#cidr_lengthObject

Returns the value of attribute cidr_length.



5
6
7
# File 'lib/arin-rws/netblock.rb', line 5

def cidr_length
  @cidr_length
end

#descriptionObject

Returns the value of attribute description.



5
6
7
# File 'lib/arin-rws/netblock.rb', line 5

def description
  @description
end

#end_addressObject

Returns the value of attribute end_address.



5
6
7
# File 'lib/arin-rws/netblock.rb', line 5

def end_address
  @end_address
end

#start_addressObject

Returns the value of attribute start_address.



5
6
7
# File 'lib/arin-rws/netblock.rb', line 5

def start_address
  @start_address
end

#typeObject

Returns the value of attribute type.



5
6
7
# File 'lib/arin-rws/netblock.rb', line 5

def type
  @type
end