Class: IPAdmin::NetStruct

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

Overview

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

Description of fields:

* network - byte-packed IP network
* netmask - byte-packed IP netmask
* version - IP version
* object - holds an IPAdmin class object
* subnets - an array of children IPAdmin::NetStruct objects

Instance Attribute Summary collapse

Instance Attribute Details

#netmaskObject

Returns the value of attribute netmask

Returns:

  • (Object)

    the current value of netmask



3682
3683
3684
# File 'lib/ip_admin.rb', line 3682

def netmask
  @netmask
end

#networkObject

Returns the value of attribute network

Returns:

  • (Object)

    the current value of network



3682
3683
3684
# File 'lib/ip_admin.rb', line 3682

def network
  @network
end

#objectObject

Returns the value of attribute object

Returns:

  • (Object)

    the current value of object



3682
3683
3684
# File 'lib/ip_admin.rb', line 3682

def object
  @object
end

#subnetsObject

Returns the value of attribute subnets

Returns:

  • (Object)

    the current value of subnets



3682
3683
3684
# File 'lib/ip_admin.rb', line 3682

def subnets
  @subnets
end

#versionObject

Returns the value of attribute version

Returns:

  • (Object)

    the current value of version



3682
3683
3684
# File 'lib/ip_admin.rb', line 3682

def version
  @version
end