Class: Wonkavision::Plugins::BusinessActivity::EventBinding

Inherits:
EventBinding
  • Object
show all
Defined in:
lib/wonkavision/plugins/business_activity/event_binding.rb

Instance Attribute Summary collapse

Attributes inherited from EventBinding

#events, #name, #options

Instance Method Summary collapse

Methods inherited from EventBinding

#subscribe_to_events

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

#correlationObject (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