Class: PgEventstore::Web::Subscriptions::WithState::SetCollection
- Inherits:
-
Object
- Object
- PgEventstore::Web::Subscriptions::WithState::SetCollection
- Defined in:
- lib/pg_eventstore/web/subscriptions/with_state/set_collection.rb
Instance Attribute Summary collapse
- #connection ⇒ PgEventstore::Connection writeonly
Instance Method Summary collapse
-
#initialize(connection, state:) ⇒ SetCollection
constructor
A new instance of SetCollection.
- #names ⇒ Array<String>
Constructor Details
#initialize(connection, state:) ⇒ SetCollection
Returns a new instance of SetCollection.
15 16 17 18 |
# File 'lib/pg_eventstore/web/subscriptions/with_state/set_collection.rb', line 15 def initialize(connection, state:) @connection = connection @state = state end |
Instance Attribute Details
#connection=(value) ⇒ PgEventstore::Connection
10 11 12 |
# File 'lib/pg_eventstore/web/subscriptions/with_state/set_collection.rb', line 10 def connection @connection end |
Instance Method Details
#names ⇒ Array<String>
21 22 23 |
# File 'lib/pg_eventstore/web/subscriptions/with_state/set_collection.rb', line 21 def names @names ||= subscription_queries.set_collection(@state) end |