Class: Ios::Devices::Model
- Inherits:
-
Object
- Object
- Ios::Devices::Model
- Defined in:
- lib/ios/devices/model.rb
Overview
Represents an iOS device model. Every device has a type and name and some of them also have extra information (Revision, Wi-fi, etc.)
Instance Attribute Summary collapse
-
#device_type ⇒ Object
Returns the value of attribute device_type.
-
#extra ⇒ Object
Returns the value of attribute extra.
-
#name ⇒ Object
Returns the value of attribute name.
Instance Method Summary collapse
-
#initialize(device_type, name, extra = nil) ⇒ Model
constructor
A new instance of Model.
Constructor Details
#initialize(device_type, name, extra = nil) ⇒ Model
Returns a new instance of Model.
10 11 12 13 14 |
# File 'lib/ios/devices/model.rb', line 10 def initialize(device_type, name, extra = nil) @device_type = device_type @name = name @extra = extra end |
Instance Attribute Details
#device_type ⇒ Object
Returns the value of attribute device_type.
8 9 10 |
# File 'lib/ios/devices/model.rb', line 8 def device_type @device_type end |
#extra ⇒ Object
Returns the value of attribute extra.
8 9 10 |
# File 'lib/ios/devices/model.rb', line 8 def extra @extra end |
#name ⇒ Object
Returns the value of attribute name.
8 9 10 |
# File 'lib/ios/devices/model.rb', line 8 def name @name end |