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

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(connection) ⇒ SetCollection

Returns a new instance of SetCollection.

Parameters:



13
14
15
# File 'lib/pg_eventstore/web/subscriptions/set_collection.rb', line 13

def initialize(connection)
  @connection = connection
end

Instance Attribute Details

#connection=(value) ⇒ PgEventstore::Connection



9
10
11
# File 'lib/pg_eventstore/web/subscriptions/set_collection.rb', line 9

def connection
  @connection
end

Instance Method Details

#namesArray<String>

Returns:

  • (Array<String>)


18
19
20
# File 'lib/pg_eventstore/web/subscriptions/set_collection.rb', line 18

def names
  @set_collection ||= (subscription_queries.set_collection | subscriptions_set_queries.set_names).sort
end