Class: QuickMem::Summary
- Inherits:
-
Object
- Object
- QuickMem::Summary
- Defined in:
- lib/quick_mem/summary.rb
Constant Summary collapse
- NUMBER_FORMAT =
'%.2f'
Instance Method Summary collapse
-
#initialize(raw_data) ⇒ Summary
constructor
A new instance of Summary.
- #show ⇒ Object
Constructor Details
#initialize(raw_data) ⇒ Summary
Returns a new instance of Summary.
8 9 10 11 12 13 |
# File 'lib/quick_mem/summary.rb', line 8 def initialize(raw_data) @summary = {} @stats = raw_data calculate_heap_summary calculate_percentage_used end |
Instance Method Details
#show ⇒ Object
15 16 17 |
# File 'lib/quick_mem/summary.rb', line 15 def show summary end |