Class: Hive::Device::Ios

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(config) ⇒ Ios

Returns a new instance of Ios.



8
9
10
11
12
13
14
15
16
# File 'lib/hive/device/ios.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/, '_')
  @device_range = config['device_range'].downcase
  @os_version = config['os_version']

  super
end

Instance Attribute Details

#device_typeObject

Returns the value of attribute device_type.



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

def device_type
  @device_type
end

#modelObject

Returns the value of attribute model.



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

def model
  @model
end

#os_versionObject

Returns the value of attribute os_version.



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

def os_version
  @os_version
end