Class: Nl::Linux::Team::AttributeSets::AttrOption
- Inherits:
-
AttributeSet
- Object
- AttributeSet
- Nl::Linux::Team::AttributeSets::AttrOption
- Defined in:
- nl-linux/generated/nl/linux/team.rb
Defined Under Namespace
Classes: ArrayIndex, Attribute, Changed, Data, Name, PortIfindex, Removed, Type
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
-
#array_index ⇒ Integer
for array options.
- #changed ⇒ Integer
- #data ⇒ String
- #name ⇒ String
-
#port_ifindex ⇒ Integer
for per-port options.
- #removed ⇒ Integer
- #type ⇒ 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.
242 |
# File 'nl-linux/generated/nl/linux/team.rb', line 242 def by_name(name); BY_NAME.fetch(name); end |
.by_type(type) ⇒ Attribute
Looks up Attribute class by type value.
248 |
# File 'nl-linux/generated/nl/linux/team.rb', line 248 def by_type(type); BY_TYPE.fetch(type); end |
Instance Method Details
#array_index ⇒ Integer
for array options
235 |
# File 'nl-linux/generated/nl/linux/team.rb', line 235 def array_index; self[:"array_index"]&.value; end |
#changed ⇒ Integer
213 |
# File 'nl-linux/generated/nl/linux/team.rb', line 213 def changed; self[:"changed"]&.value; end |
#data ⇒ String
221 |
# File 'nl-linux/generated/nl/linux/team.rb', line 221 def data; self[:"data"]&.value; end |
#name ⇒ String
209 |
# File 'nl-linux/generated/nl/linux/team.rb', line 209 def name; self[:"name"]&.value; end |
#port_ifindex ⇒ Integer
for per-port options
230 |
# File 'nl-linux/generated/nl/linux/team.rb', line 230 def port_ifindex; self[:"port_ifindex"]&.value; end |
#removed ⇒ Integer
225 |
# File 'nl-linux/generated/nl/linux/team.rb', line 225 def removed; self[:"removed"]&.value; end |
#type ⇒ Integer
217 |
# File 'nl-linux/generated/nl/linux/team.rb', line 217 def type; self[:"type"]&.value; end |