Class: DefaultContextEventHandler

Inherits:
ContextDataProvider show all
Defined in:
lib/default_context_event_handler.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods inherited from ContextDataProvider

#context_data

Constructor Details

#initialize(client) ⇒ DefaultContextEventHandler

Returns a new instance of DefaultContextEventHandler.



8
9
10
# File 'lib/default_context_event_handler.rb', line 8

def initialize(client)
  @client = client
end

Instance Attribute Details

#clientObject

Returns the value of attribute client.



6
7
8
# File 'lib/default_context_event_handler.rb', line 6

def client
  @client
end

Instance Method Details

#publish(context, event) ⇒ Object



12
13
14
# File 'lib/default_context_event_handler.rb', line 12

def publish(context, event)
  @client.publish(event)
end