Class: IPAdmin::NetStruct

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

Overview

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

Description of fields:

* network - Integer representing an IP address
* netmask - Integer representing IP netmask
* version - Integer representing an IP version
* object - holds an IPAdmin class object
* subnets - an array of children NetStruct objects

Instance Attribute Summary collapse

Instance Attribute Details

#netmaskObject

Returns the value of attribute netmask

Returns:

  • (Object)

    the current value of netmask



1499
1500
1501
# File 'lib/methods.rb', line 1499

def netmask
  @netmask
end

#networkObject

Returns the value of attribute network

Returns:

  • (Object)

    the current value of network



1499
1500
1501
# File 'lib/methods.rb', line 1499

def network
  @network
end

#objectObject

Returns the value of attribute object

Returns:

  • (Object)

    the current value of object



1499
1500
1501
# File 'lib/methods.rb', line 1499

def object
  @object
end

#subnetsObject

Returns the value of attribute subnets

Returns:

  • (Object)

    the current value of subnets



1499
1500
1501
# File 'lib/methods.rb', line 1499

def subnets
  @subnets
end

#versionObject

Returns the value of attribute version

Returns:

  • (Object)

    the current value of version



1499
1500
1501
# File 'lib/methods.rb', line 1499

def version
  @version
end