Class: Deviceify::Device

Inherits:
Object
  • Object
show all
Defined in:
lib/deviceify/device.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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(options={})
  self.name = options[:name]
  self.generation = options[:generation]
  self.fcc_ids = options[:fcc_ids]
  self.sizes = options[:sizes]
  self.models = options[:models]
end

Instance Attribute Details

#fcc_idsObject

Returns the value of attribute fcc_ids.



3
4
5
# File 'lib/deviceify/device.rb', line 3

def fcc_ids
  @fcc_ids
end

#generationObject

Returns the value of attribute generation.



3
4
5
# File 'lib/deviceify/device.rb', line 3

def generation
  @generation
end

#modelsObject

Returns the value of attribute models.



3
4
5
# File 'lib/deviceify/device.rb', line 3

def models
  @models
end

#nameObject

Returns the value of attribute name.



3
4
5
# File 'lib/deviceify/device.rb', line 3

def name
  @name
end

#sizesObject

Returns the value of attribute sizes.



3
4
5
# File 'lib/deviceify/device.rb', line 3

def sizes
  @sizes
end