Class: OpenHAB::Core::Events::ItemCommandEvent
- Inherits:
-
ItemEvent
show all
- Defined in:
- lib/openhab/core/events/item_command_event.rb
Overview
Instance Attribute Summary collapse
Attributes inherited from ItemEvent
#group, #item
#attachment, #inputs, #source
Instance Method Summary
collapse
-
#decrease? ⇒ true, false
-
#down? ⇒ true, false
-
#fast_forward? ⇒ true, false
-
#increase? ⇒ true, false
-
#inspect ⇒ String
-
#move? ⇒ true, false
-
#next? ⇒ true, false
-
#off? ⇒ true, false
-
#on? ⇒ true, false
Check if #command is (implicitly convertible to) ON.
-
#pause? ⇒ true, false
-
#play? ⇒ true, false
-
#previous? ⇒ true, false
-
#refresh? ⇒ true, false
-
#rewind? ⇒ true, false
-
#stop? ⇒ true, false
-
#up? ⇒ true, false
Check if #command is (implicitly convertible to) UP.
#payload
Instance Attribute Details
Returns The command sent to the item.
14
|
# File 'lib/openhab/core/events/item_command_event.rb', line 14
alias_method :command, :item_command
|
Instance Method Details
#decrease? ⇒ true, false
|
# File 'lib/openhab/core/events/item_command_event.rb', line 48
|
#down? ⇒ true, false
|
# File 'lib/openhab/core/events/item_command_event.rb', line 32
|
#fast_forward? ⇒ true, false
|
# File 'lib/openhab/core/events/item_command_event.rb', line 64
|
#increase? ⇒ true, false
|
# File 'lib/openhab/core/events/item_command_event.rb', line 44
|
#inspect ⇒ String
77
78
79
80
81
|
# File 'lib/openhab/core/events/item_command_event.rb', line 77
def inspect
s = "#<OpenHAB::Core::Events::ItemCommandEvent item=#{itemName} command=#{command.inspect}"
s += " source=#{source.inspect}" if source
"#{s}>"
end
|
#move? ⇒ true, false
|
# File 'lib/openhab/core/events/item_command_event.rb', line 40
|
#next? ⇒ true, false
|
# File 'lib/openhab/core/events/item_command_event.rb', line 68
|
#off? ⇒ true, false
|
# File 'lib/openhab/core/events/item_command_event.rb', line 24
|
#on? ⇒ true, false
Check if #command is (implicitly convertible to) ON
|
# File 'lib/openhab/core/events/item_command_event.rb', line 20
|
#pause? ⇒ true, false
|
# File 'lib/openhab/core/events/item_command_event.rb', line 56
|
#play? ⇒ true, false
|
# File 'lib/openhab/core/events/item_command_event.rb', line 52
|
#previous? ⇒ true, false
|
# File 'lib/openhab/core/events/item_command_event.rb', line 72
|
#refresh? ⇒ true, false
|
# File 'lib/openhab/core/events/item_command_event.rb', line 16
|
#rewind? ⇒ true, false
|
# File 'lib/openhab/core/events/item_command_event.rb', line 60
|
#stop? ⇒ true, false
|
# File 'lib/openhab/core/events/item_command_event.rb', line 36
|
#up? ⇒ true, false
Check if #command is (implicitly convertible to) UP
|
# File 'lib/openhab/core/events/item_command_event.rb', line 28
|