Method: TempoIQ::Sensor#initialize

Defined in:
lib/tempoiq/models/sensor.rb

#initialize(key, name = "", attributes = {}) ⇒ Sensor

Returns a new instance of Sensor.



14
15
16
17
18
# File 'lib/tempoiq/models/sensor.rb', line 14

def initialize(key, name = "", attributes = {})
  @key = key
  @name = name
  @attributes = attributes
end