Class: Nl::Linux::RtLink::AttributeSets::LinkinfoAttrs

Inherits:
AttributeSet
  • Object
show all
Defined in:
nl-linux/generated/nl/linux/rt_link.rb

Defined Under Namespace

Classes: Attribute, Data, Kind, SlaveData, SlaveKind, Xstats

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:



2448
# File 'nl-linux/generated/nl/linux/rt_link.rb', line 2448

def by_name(name); BY_NAME.fetch(name); end

.by_type(type) ⇒ Attribute

Looks up Attribute class by type value.

Parameters:

  • type (Integer)

Returns:



2454
# File 'nl-linux/generated/nl/linux/rt_link.rb', line 2454

def by_type(type); BY_TYPE.fetch(type); end

Instance Method Details

#kind ⇒ String

Returns:

  • (String)

See Also:



2425
# File 'nl-linux/generated/nl/linux/rt_link.rb', line 2425

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

#slave_data ⇒ SubMessages::LinkinfoMemberDataMsg::Bridge, ...



2441
# File 'nl-linux/generated/nl/linux/rt_link.rb', line 2441

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

#slave_kind ⇒ String

Returns:

  • (String)

See Also:



2437
# File 'nl-linux/generated/nl/linux/rt_link.rb', line 2437

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

#xstats ⇒ String

Returns:

  • (String)

See Also:



2433
# File 'nl-linux/generated/nl/linux/rt_link.rb', line 2433

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