Class: Wonkavision::Plugins::BusinessActivity::EventBinding
- Inherits:
-
EventBinding
- Object
- EventBinding
- Wonkavision::Plugins::BusinessActivity::EventBinding
- Defined in:
- lib/wonkavision/plugins/business_activity/event_binding.rb
Instance Attribute Summary collapse
-
#correlation ⇒ Object
readonly
Returns the value of attribute correlation.
Attributes inherited from EventBinding
Instance Method Summary collapse
-
#initialize(*args) ⇒ EventBinding
constructor
A new instance of EventBinding.
Methods inherited from EventBinding
Constructor Details
#initialize(*args) ⇒ EventBinding
Returns a new instance of EventBinding.
6 7 8 9 10 11 12 |
# File 'lib/wonkavision/plugins/business_activity/event_binding.rb', line 6 def initialize(*args) super(*args) if (correlation_args = @options.delete(:correlate_by)) correlation_args = [correlation_args] unless correlation_args.is_a?(Array) @correlation = BusinessActivity.normalize_correlation_ids(*correlation_args) end end |
Instance Attribute Details
#correlation ⇒ Object (readonly)
Returns the value of attribute correlation.
5 6 7 |
# File 'lib/wonkavision/plugins/business_activity/event_binding.rb', line 5 def correlation @correlation end |