Class: Nl::Linux::RtLink::AttributeSets::StatsAttrs

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

Defined Under Namespace

Classes: AfSpec, Attribute, Link64, LinkOffloadXstats, LinkXstats, LinkXstatsSlave

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:



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

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

.by_type(type) ⇒ Attribute

Looks up Attribute class by type value.

Parameters:

  • type (Integer)

Returns:



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

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

Instance Method Details

#af_spec ⇒ String

Returns:

  • (String)

See Also:



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

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

Returns:

See Also:



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

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


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

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

Returns:

  • (String)

See Also:



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

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

Returns:

  • (String)

See Also:



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

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