Class: Arin::RWS::NetBlock
- Inherits:
-
Object
- Object
- Arin::RWS::NetBlock
- Defined in:
- lib/arin-rws/netblock.rb
Instance Attribute Summary collapse
-
#cidr_length ⇒ Object
Returns the value of attribute cidr_length.
-
#description ⇒ Object
Returns the value of attribute description.
-
#end_address ⇒ Object
Returns the value of attribute end_address.
-
#start_address ⇒ Object
Returns the value of attribute start_address.
-
#type ⇒ Object
Returns the value of attribute type.
Instance Method Summary collapse
-
#initialize(data) ⇒ NetBlock
constructor
A new instance of NetBlock.
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_length ⇒ Object
Returns the value of attribute cidr_length.
5 6 7 |
# File 'lib/arin-rws/netblock.rb', line 5 def cidr_length @cidr_length end |
#description ⇒ Object
Returns the value of attribute description.
5 6 7 |
# File 'lib/arin-rws/netblock.rb', line 5 def description @description end |
#end_address ⇒ Object
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_address ⇒ Object
Returns the value of attribute start_address.
5 6 7 |
# File 'lib/arin-rws/netblock.rb', line 5 def start_address @start_address end |
#type ⇒ Object
Returns the value of attribute type.
5 6 7 |
# File 'lib/arin-rws/netblock.rb', line 5 def type @type end |