Sha256: 3fcd6cdd288d4559b4bb069d2d1be96a645b94a1ecd7c51a36b06036ad225dfb

Contents?: true

Size: 863 Bytes

Versions: 11

Compression:

Stored size: 863 Bytes

Contents

# frozen_string_literal: true

module PgEventstore
  module Web
    module Subscriptions
      module WithState
        class SetCollection
          # @!attribute connection
          #   @return [PgEventstore::Connection]
          attr_reader :connection
          private :connection

          # @param connection [PgEventstore::Connection]
          # @param state [String]
          def initialize(connection, state:)
            @connection = connection
            @state = state
          end

          # @return [Array<String>]
          def names
            @set_collection ||= subscription_queries.set_collection(@state)
          end

          private

          # @return [PgEventstore::SubscriptionQueries]
          def subscription_queries
            SubscriptionQueries.new(connection)
          end
        end
      end
    end
  end
end

Version data entries

11 entries across 11 versions & 1 rubygems

Version Path
pg_eventstore-1.9.0 lib/pg_eventstore/web/subscriptions/with_state/set_collection.rb
pg_eventstore-1.8.0 lib/pg_eventstore/web/subscriptions/with_state/set_collection.rb
pg_eventstore-1.7.0 lib/pg_eventstore/web/subscriptions/with_state/set_collection.rb
pg_eventstore-1.6.0 lib/pg_eventstore/web/subscriptions/with_state/set_collection.rb
pg_eventstore-1.5.0 lib/pg_eventstore/web/subscriptions/with_state/set_collection.rb
pg_eventstore-1.4.0 lib/pg_eventstore/web/subscriptions/with_state/set_collection.rb
pg_eventstore-1.3.4 lib/pg_eventstore/web/subscriptions/with_state/set_collection.rb
pg_eventstore-1.3.3 lib/pg_eventstore/web/subscriptions/with_state/set_collection.rb
pg_eventstore-1.3.2 lib/pg_eventstore/web/subscriptions/with_state/set_collection.rb
pg_eventstore-1.3.1 lib/pg_eventstore/web/subscriptions/with_state/set_collection.rb
pg_eventstore-1.3.0 lib/pg_eventstore/web/subscriptions/with_state/set_collection.rb