Class: KPM::SystemProxy::CpuInformation
- Inherits:
-
Object
- Object
- KPM::SystemProxy::CpuInformation
- Defined in:
- lib/kpm/system_helpers/cpu_information.rb
Instance Attribute Summary collapse
-
#cpu_info ⇒ Object
readonly
Returns the value of attribute cpu_info.
-
#labels ⇒ Object
readonly
Returns the value of attribute labels.
Instance Method Summary collapse
-
#initialize ⇒ CpuInformation
constructor
A new instance of CpuInformation.
Constructor Details
#initialize ⇒ CpuInformation
Returns a new instance of CpuInformation.
8 9 10 11 12 |
# File 'lib/kpm/system_helpers/cpu_information.rb', line 8 def initialize @cpu_info = fetch @labels = [{ label: :cpu_detail }, { label: :value }] end |
Instance Attribute Details
#cpu_info ⇒ Object (readonly)
Returns the value of attribute cpu_info.
6 7 8 |
# File 'lib/kpm/system_helpers/cpu_information.rb', line 6 def cpu_info @cpu_info end |
#labels ⇒ Object (readonly)
Returns the value of attribute labels.
6 7 8 |
# File 'lib/kpm/system_helpers/cpu_information.rb', line 6 def labels @labels end |