Class: Interface::PortGroup

Inherits:
Object
  • Object
show all
Includes:
DSL
Defined in:
lib/interface/port_group.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from DSL

#_interface_adapter, #_settings, #defpoint, #defsettings, #doc, #extend_api, #interface, #interfaces, #method_missing, #points, #returns

Constructor Details

#initialize(name, parent = nil) ⇒ PortGroup

Returns a new instance of PortGroup.



9
10
11
12
# File 'lib/interface/port_group.rb', line 9

def initialize(name, parent = nil)
  @name = name
  @parent = parent
end

Dynamic Method Handling

This class handles dynamic methods through the method_missing method in the class Interface::DSL

Instance Attribute Details

#nameObject (readonly)

Returns the value of attribute name.



7
8
9
# File 'lib/interface/port_group.rb', line 7

def name
  @name
end

#parentObject (readonly)

Returns the value of attribute parent.



7
8
9
# File 'lib/interface/port_group.rb', line 7

def parent
  @parent
end