Class: Nl::Linux::Team::AttributeSets::Team
- Inherits:
-
AttributeSet
- Object
- AttributeSet
- Nl::Linux::Team::AttributeSets::Team
- Defined in:
- nl-linux/generated/nl/linux/team.rb
Overview
- The team nested layout of get/set msg looks like
[TEAM_ATTR_LIST_OPTION]
[TEAM_ATTR_ITEM_OPTION]
[TEAM_ATTR_OPTION_*], ...
[TEAM_ATTR_ITEM_OPTION]
[TEAM_ATTR_OPTION_*], ...
...
[TEAM_ATTR_LIST_PORT]
[TEAM_ATTR_ITEM_PORT]
[TEAM_ATTR_PORT_*], ...
[TEAM_ATTR_ITEM_PORT]
[TEAM_ATTR_PORT_*], ...
...
Defined Under Namespace
Classes: Attribute, ListOption, ListPort, TeamIfindex
Constant Summary
Constants inherited from AttributeSet
Class Method Summary collapse
-
.by_name(name) ⇒ Attribute
Looks up Attribute class by name.
-
.by_type(type) ⇒ Attribute
Looks up Attribute class by type value.
Instance Method Summary collapse
- #list_option ⇒ AttributeSets::ItemOption
- #list_port ⇒ AttributeSets::ItemPort
- #team_ifindex ⇒ Integer
Methods inherited from AttributeSet
#<<, #[], build_attributes, decode, #encode, #initialize
Constructor Details
This class inherits a constructor from Nl::AttributeSet
Class Method Details
.by_name(name) ⇒ Attribute
Looks up Attribute class by name.
98 |
# File 'nl-linux/generated/nl/linux/team.rb', line 98 def by_name(name); BY_NAME.fetch(name); end |
.by_type(type) ⇒ Attribute
Looks up Attribute class by type value.
104 |
# File 'nl-linux/generated/nl/linux/team.rb', line 104 def by_type(type); BY_TYPE.fetch(type); end |
Instance Method Details
#list_option ⇒ AttributeSets::ItemOption
87 |
# File 'nl-linux/generated/nl/linux/team.rb', line 87 def list_option; self[:"list_option"]&.value; end |
#list_port ⇒ AttributeSets::ItemPort
91 |
# File 'nl-linux/generated/nl/linux/team.rb', line 91 def list_port; self[:"list_port"]&.value; end |
#team_ifindex ⇒ Integer
83 |
# File 'nl-linux/generated/nl/linux/team.rb', line 83 def team_ifindex; self[:"team_ifindex"]&.value; end |