Class: PgEventstore::Web::Subscriptions::WithState::SetCollection

Inherits:
Object
  • Object
show all
Defined in:
lib/pg_eventstore/web/subscriptions/with_state/set_collection.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(connection, state:) ⇒ SetCollection

Returns a new instance of SetCollection.

Parameters:



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

#namesArray<String>

Returns:

  • (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