Class: NetAddr::NetStruct

Inherits:
Struct
  • Object
show all
Defined in:
lib/methods.rb

Overview

NetStruct

Struct object used internally by NetAddr. It is not likely directly useful to anyone.

Description of fields:

* cidr - NetAddr::CIDR object
* parent - parent NetStruct in tree
* children - Array of children NetStruct objects

Instance Attribute Summary collapse

Instance Attribute Details

#childrenObject

Returns the value of attribute children

Returns:

  • (Object)

    the current value of children



1249
1250
1251
# File 'lib/methods.rb', line 1249

def children
  @children
end

#cidrObject

Returns the value of attribute cidr

Returns:

  • (Object)

    the current value of cidr



1249
1250
1251
# File 'lib/methods.rb', line 1249

def cidr
  @cidr
end

#parentObject

Returns the value of attribute parent

Returns:

  • (Object)

    the current value of parent



1249
1250
1251
# File 'lib/methods.rb', line 1249

def parent
  @parent
end