Class: Hive::Device::Ios
- Inherits:
-
Hive::Device
- Object
- Hive::Device
- Hive::Device::Ios
- Defined in:
- lib/hive/device/ios.rb
Instance Attribute Summary collapse
-
#device_type ⇒ Object
Returns the value of attribute device_type.
-
#model ⇒ Object
Returns the value of attribute model.
-
#os_version ⇒ Object
Returns the value of attribute os_version.
Instance Method Summary collapse
-
#initialize(config) ⇒ Ios
constructor
A new instance of Ios.
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_type ⇒ Object
Returns the value of attribute device_type.
6 7 8 |
# File 'lib/hive/device/ios.rb', line 6 def device_type @device_type end |
#model ⇒ Object
Returns the value of attribute model.
6 7 8 |
# File 'lib/hive/device/ios.rb', line 6 def model @model end |
#os_version ⇒ Object
Returns the value of attribute os_version.
6 7 8 |
# File 'lib/hive/device/ios.rb', line 6 def os_version @os_version end |