Class: DeviceAPI::Android::Plugin::Memory::RAM
- Inherits:
-
Object
- Object
- DeviceAPI::Android::Plugin::Memory::RAM
- Defined in:
- lib/device_api/android/plugins/memory.rb
Overview
Class used for storing process information
Instance Attribute Summary collapse
-
#free ⇒ Object
Returns the value of attribute free.
-
#lost ⇒ Object
Returns the value of attribute lost.
-
#total ⇒ Object
Returns the value of attribute total.
-
#tuning ⇒ Object
Returns the value of attribute tuning.
-
#used ⇒ Object
Returns the value of attribute used.
Instance Method Summary collapse
-
#initialize(options = {}) ⇒ RAM
constructor
A new instance of RAM.
Constructor Details
#initialize(options = {}) ⇒ RAM
Returns a new instance of RAM.
22 23 24 25 26 27 28 |
# File 'lib/device_api/android/plugins/memory.rb', line 22 def initialize( = {}) @total = [:total] @free = [:free] @used = [:used] @lost = [:lost] @tuning = [:tuning] end |
Instance Attribute Details
#free ⇒ Object
Returns the value of attribute free.
21 22 23 |
# File 'lib/device_api/android/plugins/memory.rb', line 21 def free @free end |
#lost ⇒ Object
Returns the value of attribute lost.
21 22 23 |
# File 'lib/device_api/android/plugins/memory.rb', line 21 def lost @lost end |
#total ⇒ Object
Returns the value of attribute total.
21 22 23 |
# File 'lib/device_api/android/plugins/memory.rb', line 21 def total @total end |
#tuning ⇒ Object
Returns the value of attribute tuning.
21 22 23 |
# File 'lib/device_api/android/plugins/memory.rb', line 21 def tuning @tuning end |
#used ⇒ Object
Returns the value of attribute used.
21 22 23 |
# File 'lib/device_api/android/plugins/memory.rb', line 21 def used @used end |