Class: DefaultContextEventHandler
- Inherits:
-
ContextDataProvider
- Object
- ContextDataProvider
- DefaultContextEventHandler
- Defined in:
- lib/default_context_event_handler.rb
Instance Attribute Summary collapse
-
#client ⇒ Object
Returns the value of attribute client.
Instance Method Summary collapse
-
#initialize(client) ⇒ DefaultContextEventHandler
constructor
A new instance of DefaultContextEventHandler.
- #publish(context, event) ⇒ Object
Methods inherited from ContextDataProvider
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
#client ⇒ Object
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 |