Class: DeviceAPI::Android::Plugin::Memory::RAM

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

Overview

Class used for storing process information

Instance Attribute Summary collapse

Instance Method Summary collapse

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(options = {})
  @total  = options[:total]
  @free   = options[:free]
  @used   = options[:used]
  @lost   = options[:lost]
  @tuning = options[:tuning]
end

Instance Attribute Details

#freeObject

Returns the value of attribute free.



21
22
23
# File 'lib/device_api/android/plugins/memory.rb', line 21

def free
  @free
end

#lostObject

Returns the value of attribute lost.



21
22
23
# File 'lib/device_api/android/plugins/memory.rb', line 21

def lost
  @lost
end

#totalObject

Returns the value of attribute total.



21
22
23
# File 'lib/device_api/android/plugins/memory.rb', line 21

def total
  @total
end

#tuningObject

Returns the value of attribute tuning.



21
22
23
# File 'lib/device_api/android/plugins/memory.rb', line 21

def tuning
  @tuning
end

#usedObject

Returns the value of attribute used.



21
22
23
# File 'lib/device_api/android/plugins/memory.rb', line 21

def used
  @used
end