Class: Nl::Linux::Devlink::AttributeSets::DlDevStats

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

Defined Under Namespace

Classes: Attribute, ReloadStats, RemoteReloadStats

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:



2389
# File 'nl-linux/generated/nl/linux/devlink.rb', line 2389

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

.by_type(type) ⇒ Attribute

Looks up Attribute class by type value.

Parameters:

  • type (Integer)

Returns:



2395
# File 'nl-linux/generated/nl/linux/devlink.rb', line 2395

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

Instance Method Details

#reload_stats ⇒ AttributeSets::DlReloadStats



2378
# File 'nl-linux/generated/nl/linux/devlink.rb', line 2378

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

#remote_reload_stats ⇒ AttributeSets::DlReloadStats



2382
# File 'nl-linux/generated/nl/linux/devlink.rb', line 2382

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