Class: Hive::Device::Android

Inherits:
Hive::Device show all
Defined in:
lib/hive/device/android.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(config) ⇒ Android

Returns a new instance of Android.



8
9
10
11
12
13
14
15
# File 'lib/hive/device/android.rb', line 8

def initialize(config)
  @identity = config['id']
  @queue_prefix = config['queue_prefix'].to_s == '' ? '' : "#{config['queue_prefix']}-"
  @model = config['model'].downcase.gsub(/\s/, '_')
  @brand = config['brand'].downcase.gsub(/\s/, '_')
  @os_version = config['os_version']
  super
end

Instance Attribute Details

#brandObject

Returns the value of attribute brand.



6
7
8
# File 'lib/hive/device/android.rb', line 6

def brand
  @brand
end

#modelObject

Returns the value of attribute model.



6
7
8
# File 'lib/hive/device/android.rb', line 6

def model
  @model
end

#os_versionObject

Returns the value of attribute os_version.



6
7
8
# File 'lib/hive/device/android.rb', line 6

def os_version
  @os_version
end