Class: RSpec::OpenHAB::Items::ThingHandler

Inherits:
Object
  • Object
show all
Defined in:
lib/rspec/openhab/items.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#thingObject (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