Module: RubyEventStore::ProcessManager::Subscriptions

Defined in:
lib/ruby_event_store/process_manager.rb

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#subscribed_eventsObject (readonly)

Returns the value of attribute subscribed_events.



48
49
50
# File 'lib/ruby_event_store/process_manager.rb', line 48

def subscribed_events
  @subscribed_events
end

Class Method Details

.extended(host_class) ⇒ Object



40
41
42
# File 'lib/ruby_event_store/process_manager.rb', line 40

def self.extended(host_class)
  host_class.instance_variable_set(:@subscribed_events, [])
end

Instance Method Details

#subscribes_to(*events) ⇒ Object



44
45
46
# File 'lib/ruby_event_store/process_manager.rb', line 44

def subscribes_to(*events)
  @subscribed_events += events
end