Class: PgEventstore::Web::Subscriptions::SetCollection
- Inherits:
-
Object
- Object
- PgEventstore::Web::Subscriptions::SetCollection
- Defined in:
- lib/pg_eventstore/web/subscriptions/set_collection.rb
Instance Attribute Summary collapse
- #connection ⇒ PgEventstore::Connection writeonly
Instance Method Summary collapse
-
#initialize(connection) ⇒ SetCollection
constructor
A new instance of SetCollection.
- #names ⇒ Array<String>
Constructor Details
#initialize(connection) ⇒ SetCollection
Returns a new instance of SetCollection.
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
#names ⇒ 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 |