Class: Nl::Linux::Team::AttributeSets::AttrOption

Inherits:
AttributeSet
  • Object
show all
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

AttributeSet::SELECTOR_NAMES

Class Method Summary collapse

Instance Method Summary collapse

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.

Parameters:

  • name (Symbol)

Returns:



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.

Parameters:

  • type (Integer)

Returns:



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

Returns:

  • (Integer)

See Also:



235
# File 'nl-linux/generated/nl/linux/team.rb', line 235

def array_index; self[:"array_index"]&.value; end

#changed ⇒ Integer

Returns:

  • (Integer)

See Also:



213
# File 'nl-linux/generated/nl/linux/team.rb', line 213

def changed; self[:"changed"]&.value; end

#data ⇒ String

Returns:

  • (String)

See Also:



221
# File 'nl-linux/generated/nl/linux/team.rb', line 221

def data; self[:"data"]&.value; end

#name ⇒ String

Returns:

  • (String)

See Also:



209
# File 'nl-linux/generated/nl/linux/team.rb', line 209

def name; self[:"name"]&.value; end

#port_ifindex ⇒ Integer

for per-port options

Returns:

  • (Integer)

See Also:



230
# File 'nl-linux/generated/nl/linux/team.rb', line 230

def port_ifindex; self[:"port_ifindex"]&.value; end

#removed ⇒ Integer

Returns:

  • (Integer)

See Also:



225
# File 'nl-linux/generated/nl/linux/team.rb', line 225

def removed; self[:"removed"]&.value; end

#type ⇒ Integer

Returns:

  • (Integer)

See Also:



217
# File 'nl-linux/generated/nl/linux/team.rb', line 217

def type; self[:"type"]&.value; end