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



1337
1338
1339
# File 'lib/methods.rb', line 1337

def children
  @children
end

#cidrObject

Returns the value of attribute cidr

Returns:

  • (Object)

    the current value of cidr



1337
1338
1339
# File 'lib/methods.rb', line 1337

def cidr
  @cidr
end

#parentObject

Returns the value of attribute parent

Returns:

  • (Object)

    the current value of parent



1337
1338
1339
# File 'lib/methods.rb', line 1337

def parent
  @parent
end