Class: RSpec::OpenHAB::Items::ThingHandler
- Inherits:
-
Object
- Object
- RSpec::OpenHAB::Items::ThingHandler
- Defined in:
- lib/rspec/openhab/items.rb
Instance Attribute Summary collapse
-
#thing ⇒ Object
readonly
Returns the value of attribute thing.
Instance Method Summary collapse
- #handle_command(channel, command) ⇒ Object
-
#initialize(thing) ⇒ ThingHandler
constructor
A new instance of ThingHandler.
Constructor Details
#initialize(thing) ⇒ ThingHandler
Returns a new instance of ThingHandler.
11 12 13 |
# File 'lib/rspec/openhab/items.rb', line 11 def initialize(thing) @thing = thing end |
Instance Attribute Details
#thing ⇒ Object (readonly)
Returns the value of attribute thing.
9 10 11 |
# File 'lib/rspec/openhab/items.rb', line 9 def thing @thing end |
Instance Method Details
#handle_command(channel, command) ⇒ Object
15 |
# File 'lib/rspec/openhab/items.rb', line 15 def handle_command(channel, command); end |