Class: OpenHAB::Core::Actions::NotificationAction
- Inherits:
-
Object
- Object
- OpenHAB::Core::Actions::NotificationAction
- Defined in:
- lib/openhab/rspec/openhab/core/actions.rb
Overview
redefine these to do nothing so that rules won’t fail
Class Method Summary collapse
- .hide_broadcast_notification_by_reference_id(id) ⇒ Object
- .hide_broadcast_notification_by_tag(tag) ⇒ Object
- .hide_notification_by_reference_id(email, id) ⇒ Object
- .hide_notification_by_tag(email, tag) ⇒ Object
- .send_broadcast_notification(msg, icon, tag, title = nil, id = nil, on_click = nil, attachment = nil, button1 = nil, button2 = nil, button3 = nil) ⇒ Object
- .send_notification(email, msg, icon, tag, title = nil, id = nil, on_click = nil, attachment = nil, button1 = nil, button2 = nil, button3 = nil) ⇒ Object
Class Method Details
.hide_broadcast_notification_by_reference_id(id) ⇒ Object
49 50 51 |
# File 'lib/openhab/rspec/openhab/core/actions.rb', line 49 def hide_broadcast_notification_by_reference_id(id) logger.debug { "hide_broadcast_notification_by_reference_id: #{id}" } end |
.hide_broadcast_notification_by_tag(tag) ⇒ Object
53 54 55 |
# File 'lib/openhab/rspec/openhab/core/actions.rb', line 53 def hide_broadcast_notification_by_tag(tag) logger.debug { "hide_broadcast_notification_by_tag: #{tag}" } end |
.hide_notification_by_reference_id(email, id) ⇒ Object
41 42 43 |
# File 'lib/openhab/rspec/openhab/core/actions.rb', line 41 def hide_notification_by_reference_id(email, id) logger.debug { "hide_notification_by_reference_id: #{email}, #{id}" } end |
.hide_notification_by_tag(email, tag) ⇒ Object
45 46 47 |
# File 'lib/openhab/rspec/openhab/core/actions.rb', line 45 def hide_notification_by_tag(email, tag) logger.debug { "hide_notification_by_tag: #{email}, #{tag}" } end |
.send_broadcast_notification(msg, icon, tag, title = nil, id = nil, on_click = nil, attachment = nil, button1 = nil, button2 = nil, button3 = nil) ⇒ Object
26 27 28 29 30 31 32 33 34 35 36 37 38 39 |
# File 'lib/openhab/rspec/openhab/core/actions.rb', line 26 def send_broadcast_notification( msg, icon, tag, title = nil, id = nil, on_click = nil, = nil, = nil, = nil, = nil ) logger.debug { "send_broadcast_notification: #{msg}, #{icon}, #{tag}, #{title}, #{id}, #{on_click}, #{}, #{}, #{}, #{}" } # rubocop:disable Layout/LineLength end |
.send_notification(email, msg, icon, tag, title = nil, id = nil, on_click = nil, attachment = nil, button1 = nil, button2 = nil, button3 = nil) ⇒ Object
10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 |
# File 'lib/openhab/rspec/openhab/core/actions.rb', line 10 def send_notification( email, msg, icon, tag, title = nil, id = nil, on_click = nil, = nil, = nil, = nil, = nil ) logger.debug { "send_notification: #{email}, #{msg}, #{icon}, #{tag}, #{title}, #{id}, #{on_click}, #{}, #{}, #{}, #{}" } # rubocop:disable Layout/LineLength end |