Class: Deviceify::Device
- Inherits:
-
Object
- Object
- Deviceify::Device
- Defined in:
- lib/deviceify/device.rb
Instance Attribute Summary collapse
-
#fcc_ids ⇒ Object
Returns the value of attribute fcc_ids.
-
#generation ⇒ Object
Returns the value of attribute generation.
-
#models ⇒ Object
Returns the value of attribute models.
-
#name ⇒ Object
Returns the value of attribute name.
-
#sizes ⇒ Object
Returns the value of attribute sizes.
Instance Method Summary collapse
-
#initialize(options = {}) ⇒ Device
constructor
A new instance of Device.
Constructor Details
#initialize(options = {}) ⇒ Device
Returns a new instance of Device.
5 6 7 8 9 10 11 |
# File 'lib/deviceify/device.rb', line 5 def initialize(={}) self.name = [:name] self.generation = [:generation] self.fcc_ids = [:fcc_ids] self.sizes = [:sizes] self.models = [:models] end |
Instance Attribute Details
#fcc_ids ⇒ Object
Returns the value of attribute fcc_ids.
3 4 5 |
# File 'lib/deviceify/device.rb', line 3 def fcc_ids @fcc_ids end |
#generation ⇒ Object
Returns the value of attribute generation.
3 4 5 |
# File 'lib/deviceify/device.rb', line 3 def generation @generation end |
#models ⇒ Object
Returns the value of attribute models.
3 4 5 |
# File 'lib/deviceify/device.rb', line 3 def models @models end |
#name ⇒ Object
Returns the value of attribute name.
3 4 5 |
# File 'lib/deviceify/device.rb', line 3 def name @name end |
#sizes ⇒ Object
Returns the value of attribute sizes.
3 4 5 |
# File 'lib/deviceify/device.rb', line 3 def sizes @sizes end |