Module: RubyEventStore::ProcessManager::Subscriptions
- Defined in:
- lib/ruby_event_store/process_manager.rb
Instance Attribute Summary collapse
-
#subscribed_events ⇒ Object
readonly
Returns the value of attribute subscribed_events.
Class Method Summary collapse
Instance Method Summary collapse
Instance Attribute Details
#subscribed_events ⇒ Object (readonly)
Returns the value of attribute subscribed_events.
63 64 65 |
# File 'lib/ruby_event_store/process_manager.rb', line 63 def subscribed_events @subscribed_events end |
Class Method Details
.extended(host_class) ⇒ Object
55 56 57 |
# File 'lib/ruby_event_store/process_manager.rb', line 55 def self.extended(host_class) host_class.instance_variable_set(:@subscribed_events, []) end |
Instance Method Details
#subscribes_to(*events) ⇒ Object
59 60 61 |
# File 'lib/ruby_event_store/process_manager.rb', line 59 def subscribes_to(*events) @subscribed_events += events end |