Class: DeviceAPI::Android::Plugin::Memory::MemInfo

Inherits:
Object
  • Object
show all
Defined in:
lib/device_api/android/plugins/memory.rb

Overview

Class used for holding process information

Instance Attribute Summary collapse

Instance Method Summary collapse

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(options = {})
  @process = options[:process]
  @memory = options[:memory]
  @pid = options[:pid]
end

Instance Attribute Details

#memoryObject (readonly)

Returns the value of attribute memory.



11
12
13
# File 'lib/device_api/android/plugins/memory.rb', line 11

def memory
  @memory
end

#pidObject (readonly)

Returns the value of attribute pid.



11
12
13
# File 'lib/device_api/android/plugins/memory.rb', line 11

def pid
  @pid
end

#processObject (readonly)

Returns the value of attribute process.



11
12
13
# File 'lib/device_api/android/plugins/memory.rb', line 11

def process
  @process
end