Class: KPM::SystemProxy::CpuInformation

Inherits:
Object
  • Object
show all
Defined in:
lib/kpm/system_helpers/cpu_information.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeCpuInformation

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_infoObject (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

#labelsObject (readonly)

Returns the value of attribute labels.



6
7
8
# File 'lib/kpm/system_helpers/cpu_information.rb', line 6

def labels
  @labels
end