Sha256: 9fa877000bfbfe9e8bdc4064315a0b1367462fc37abb76dded5c4f9b57c15493

Contents?: true

Size: 789 Bytes

Versions: 21

Compression:

Stored size: 789 Bytes

Contents

module Euston
  module AggregateRootPrivateMethodNames
    extend ActiveSupport::Concern

    module ClassMethods
      def applies_method_name event, version
        "__apply__#{event}__v#{version}__"
      end

      def consumes_method_name command, version
        "__consume__#{command}__v#{version}__"
      end

      def consumes_regex
        /__consume__(\w+)__v(\d+)__/
      end

      def id_from_event_method_name type, version
        "__id_from_event_#{type}__v#{version}__"
      end

      def load_snapshot_method_name version
        "__load_snapshot__v#{version}__"
      end

      def take_snapshot_method_name version
        "__take_snapshot__v#{version}__"
      end

      def take_snapshot_regexp
        /__take_snapshot__v(\d+)__/
      end
    end
  end
end

Version data entries

21 entries across 21 versions & 1 rubygems

Version Path
euston-1.2.10 lib/euston/aggregate_root_private_method_names.rb
euston-1.2.10-java lib/euston/aggregate_root_private_method_names.rb
euston-1.2.9-java lib/euston/aggregate_root_private_method_names.rb
euston-1.2.9 lib/euston/aggregate_root_private_method_names.rb
euston-1.2.8 lib/euston/aggregate_root_private_method_names.rb
euston-1.2.8-java lib/euston/aggregate_root_private_method_names.rb
euston-1.2.7-java lib/euston/aggregate_root_private_method_names.rb
euston-1.2.7 lib/euston/aggregate_root_private_method_names.rb
euston-1.2.6 lib/euston/aggregate_root_private_method_names.rb
euston-1.2.5-java lib/euston/aggregate_root_private_method_names.rb
euston-1.2.5 lib/euston/aggregate_root_private_method_names.rb
euston-1.2.4-java lib/euston/aggregate_root_private_method_names.rb
euston-1.2.4 lib/euston/aggregate_root_private_method_names.rb
euston-1.2.3 lib/euston/aggregate_root_private_method_names.rb
euston-1.2.3-java lib/euston/aggregate_root_private_method_names.rb
euston-1.2.2 lib/euston/aggregate_root_private_method_names.rb
euston-1.2.2-java lib/euston/aggregate_root_private_method_names.rb
euston-1.2.1 lib/euston/aggregate_root_private_method_names.rb
euston-1.2.1-java lib/euston/aggregate_root_private_method_names.rb
euston-1.2.0 lib/euston/aggregate_root_private_method_names.rb