Class: KPM::SystemProxy::MemoryInformation
- Inherits:
-
Object
- Object
- KPM::SystemProxy::MemoryInformation
- Defined in:
- lib/kpm/system_helpers/memory_information.rb
Instance Attribute Summary collapse
-
#labels ⇒ Object
readonly
Returns the value of attribute labels.
-
#memory_info ⇒ Object
readonly
Returns the value of attribute memory_info.
Instance Method Summary collapse
-
#initialize ⇒ MemoryInformation
constructor
A new instance of MemoryInformation.
Constructor Details
#initialize ⇒ MemoryInformation
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
#labels ⇒ Object (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_info ⇒ Object (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 |