Class: KPM::SystemProxy::MemoryInformation

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeMemoryInformation

Returns a new instance of MemoryInformation.



8
9
10
11
12
# File 'lib/kpm/system_helpers/memory_information.rb', line 8

def initialize
  @memory_info = fetch
  @labels = [{ label: :memory_detail },
             { label: :value }]
end

Instance Attribute Details

#labelsObject (readonly)

Returns the value of attribute labels.



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

def labels
  @labels
end

#memory_infoObject (readonly)

Returns the value of attribute memory_info.



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

def memory_info
  @memory_info
end