Class: Caliper::Sensor
- Inherits:
-
Object
- Object
- Caliper::Sensor
- Defined in:
- lib/caliper/sensor.rb
Instance Attribute Summary collapse
-
#id ⇒ Object
Returns the value of attribute id.
Instance Method Summary collapse
- #describe(entity) ⇒ Object
-
#initialize(id, options) ⇒ Sensor
constructor
A new instance of Sensor.
- #send(event) ⇒ Object
Constructor Details
#initialize(id, options) ⇒ Sensor
Returns a new instance of Sensor.
30 31 32 33 |
# File 'lib/caliper/sensor.rb', line 30 def initialize(id, ) @id = id @options = end |
Instance Attribute Details
#id ⇒ Object
Returns the value of attribute id.
28 29 30 |
# File 'lib/caliper/sensor.rb', line 28 def id @id end |