Class: DeviceAPI::Android::Plugin::Memory::MemInfo
- Inherits:
-
Object
- Object
- DeviceAPI::Android::Plugin::Memory::MemInfo
- Defined in:
- lib/device_api/android/plugins/memory.rb
Overview
Class used for holding process information
Instance Attribute Summary collapse
-
#memory ⇒ Object
readonly
Returns the value of attribute memory.
-
#pid ⇒ Object
readonly
Returns the value of attribute pid.
-
#process ⇒ Object
readonly
Returns the value of attribute process.
Instance Method Summary collapse
-
#initialize(options = {}) ⇒ MemInfo
constructor
A new instance of MemInfo.
Constructor Details
#initialize(options = {}) ⇒ MemInfo
Returns a new instance of MemInfo.
12 13 14 15 16 |
# File 'lib/device_api/android/plugins/memory.rb', line 12 def initialize( = {}) @process = [:process] @memory = [:memory] @pid = [:pid] end |
Instance Attribute Details
#memory ⇒ Object (readonly)
Returns the value of attribute memory.
11 12 13 |
# File 'lib/device_api/android/plugins/memory.rb', line 11 def memory @memory end |
#pid ⇒ Object (readonly)
Returns the value of attribute pid.
11 12 13 |
# File 'lib/device_api/android/plugins/memory.rb', line 11 def pid @pid end |
#process ⇒ Object (readonly)
Returns the value of attribute process.
11 12 13 |
# File 'lib/device_api/android/plugins/memory.rb', line 11 def process @process end |