Class: Interface::PortGroup
- Inherits:
-
Object
- Object
- Interface::PortGroup
- Includes:
- DSL
- Defined in:
- lib/interface/port_group.rb
Instance Attribute Summary collapse
-
#name ⇒ Object
readonly
Returns the value of attribute name.
-
#parent ⇒ Object
readonly
Returns the value of attribute parent.
Instance Method Summary collapse
-
#initialize(name, parent = nil) ⇒ PortGroup
constructor
A new instance of PortGroup.
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
#name ⇒ Object (readonly)
Returns the value of attribute name.
7 8 9 |
# File 'lib/interface/port_group.rb', line 7 def name @name end |
#parent ⇒ Object (readonly)
Returns the value of attribute parent.
7 8 9 |
# File 'lib/interface/port_group.rb', line 7 def parent @parent end |