class Kraken::Trigger
This class is responsible for describing the events that can be triggered by the connections.
class Example < Kraken::Trigger def run Kraken::Log.info params end end
Attributes
callback[RW]
connection[RW]
handler[R]
params[R]
Public Class Methods
new(handler, params)
click to toggle source
# File lib/kraken/triggers/trigger.rb, line 14 def initialize(handler, params) @handler = handler @connection = handler.connection @params = params @callback = nil end
Public Instance Methods
run()
click to toggle source
# File lib/kraken/triggers/trigger.rb, line 21 def run Log.warn "run method was not found for class '#{self.class}'" end