Class: Vayacondios::CubeNotifier

Inherits:
Notifier show all
Defined in:
lib/vayacondios/client/notifier.rb

Constant Summary

Constants inherited from Vayacondios

VERSION

Instance Attribute Summary

Attributes inherited from Notifier

#client

Instance Method Summary collapse

Methods inherited from Notifier

#prepare

Methods inherited from Vayacondios

default_notifier, force_legacy_mode, legacy_switch

Methods included from Notifications

included

Constructor Details

#initialize(options = {}) ⇒ CubeNotifier

Returns a new instance of CubeNotifier.



60
61
62
# File 'lib/vayacondios/client/notifier.rb', line 60

def initialize(options={})
  @client = Vayacondios::CubeClient.receive(options)
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