Sha256: 25c0a428958c7e335f476ef33c2e5832ecbaba634fa6c512603bf71eeb3c8056

Contents?: true

Size: 996 Bytes

Versions: 12

Compression:

Stored size: 996 Bytes

Contents

# frozen_string_literal: true

module PgEventstore
  module SubscriptionRunnerCommands
    # @!visibility private
    class Base
      include Extensions::OptionsExtension
      include Extensions::BaseCommandExtension

      # @!attribute id
      #   @return [Integer, nil]
      attribute(:id)
      # @!attribute name
      #   @return [String]
      attribute(:name) { self.class.name.split('::').last }
      # @!attribute subscription_id
      #   @return [Integer, nil]
      attribute(:subscription_id)
      # @!attribute subscriptions_set_id
      #   @return [Integer, nil]
      attribute(:subscriptions_set_id)
      # @!attribute data
      #   @return [Hash]
      attribute(:data) { {} }
      # @!attribute created_at
      #   @return [Time, nil]
      attribute(:created_at)

      # @param subscription_runner [PgEventstore::SubscriptionRunner]
      # @return [void]
      def exec_cmd(subscription_runner)
        # Implement it in the subclass
      end
    end
  end
end

Version data entries

12 entries across 12 versions & 1 rubygems

Version Path
pg_eventstore-1.7.0 lib/pg_eventstore/subscriptions/subscription_runner_commands/base.rb
pg_eventstore-1.6.0 lib/pg_eventstore/subscriptions/subscription_runner_commands/base.rb
pg_eventstore-1.5.0 lib/pg_eventstore/subscriptions/subscription_runner_commands/base.rb
pg_eventstore-1.4.0 lib/pg_eventstore/subscriptions/subscription_runner_commands/base.rb
pg_eventstore-1.3.4 lib/pg_eventstore/subscriptions/subscription_runner_commands/base.rb
pg_eventstore-1.3.3 lib/pg_eventstore/subscriptions/subscription_runner_commands/base.rb
pg_eventstore-1.3.2 lib/pg_eventstore/subscriptions/subscription_runner_commands/base.rb
pg_eventstore-1.3.1 lib/pg_eventstore/subscriptions/subscription_runner_commands/base.rb
pg_eventstore-1.3.0 lib/pg_eventstore/subscriptions/subscription_runner_commands/base.rb
pg_eventstore-1.2.0 lib/pg_eventstore/subscriptions/subscription_runner_commands/base.rb
pg_eventstore-1.1.5 lib/pg_eventstore/subscriptions/subscription_runner_commands/base.rb
pg_eventstore-1.1.4 lib/pg_eventstore/subscriptions/subscription_runner_commands/base.rb