Class: Vayacondios::CubeNotifier
- Inherits:
-
Notifier
- Object
- Vayacondios
- Notifier
- Vayacondios::CubeNotifier
- Defined in:
- lib/vayacondios/client/notifier.rb
Instance Attribute Summary
Attributes inherited from Notifier
Instance Method Summary collapse
-
#initialize(options = {}) ⇒ CubeNotifier
constructor
A new instance of CubeNotifier.
- #notify(topic, cargo = {}) ⇒ Object
Methods inherited from Notifier
Methods inherited from Vayacondios
default_notifier, force_legacy_mode, legacy_switch
Methods included from Notifications
Constructor Details
#initialize(options = {}) ⇒ CubeNotifier
Returns a new instance of CubeNotifier.
60 61 62 |
# File 'lib/vayacondios/client/notifier.rb', line 60 def initialize(={}) @client = Vayacondios::CubeClient.receive() end |
Instance Method Details
#notify(topic, cargo = {}) ⇒ Object
63 64 65 66 67 |
# File 'lib/vayacondios/client/notifier.rb', line 63 def notify topic, cargo={} prepped = prepare(cargo) client.event(topic, prepped) nil end |