Module: KPM::SystemProxy::MemoryInformation
- Defined in:
- lib/kpm/system_helpers/memory_information.rb
Class Method Summary collapse
Class Method Details
.fetch ⇒ Object
6 7 8 9 10 11 12 13 14 15 16 17 |
# File 'lib/kpm/system_helpers/memory_information.rb', line 6 def fetch memory_info = nil if OS.windows? memory_info = fetch_windows elsif OS.linux? memory_info = fetch_linux elsif OS.mac? memory_info = fetch_mac end memory_info end |
.get_labels ⇒ Object
19 20 21 22 23 |
# File 'lib/kpm/system_helpers/memory_information.rb', line 19 def get_labels labels = [{:label => :memory_detail}, {:label => :value}] labels end |