Class: Nl::Linux::DevEnergymodel::AttributeSets::PerfTable
- Inherits:
-
AttributeSet
- Object
- AttributeSet
- Nl::Linux::DevEnergymodel::AttributeSets::PerfTable
- Defined in:
- nl-linux/generated/nl/linux/dev_energymodel.rb
Overview
Performance states table.
Defined Under Namespace
Classes: Attribute, PerfDomainId, PerfState
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
-
#perf_domain_id ⇒ Integer
A unique ID number for each performance domain.
- #perf_state ⇒ Array<AttributeSets::PerfState>
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.
174 |
# File 'nl-linux/generated/nl/linux/dev_energymodel.rb', line 174 def by_name(name); BY_NAME.fetch(name); end |
.by_type(type) ⇒ Attribute
Looks up Attribute class by type value.
180 |
# File 'nl-linux/generated/nl/linux/dev_energymodel.rb', line 180 def by_type(type); BY_TYPE.fetch(type); end |
Instance Method Details
#perf_domain_id ⇒ Integer
A unique ID number for each performance domain.
163 |
# File 'nl-linux/generated/nl/linux/dev_energymodel.rb', line 163 def perf_domain_id; self[:"perf_domain_id"]&.value; end |
#perf_state ⇒ Array<AttributeSets::PerfState>
167 |
# File 'nl-linux/generated/nl/linux/dev_energymodel.rb', line 167 def perf_state; self[:"perf_state"].map(&:value); end |