Sha256: af5e3e44029f1b523a5fc81c077609f28160cccfd3b896b429113091d6f57a27

Contents?: true

Size: 436 Bytes

Versions: 2

Compression:

Stored size: 436 Bytes

Contents

# frozen_string_literal: true

module Elasticity
  module Strategies
    class IndexError < StandardError
      attr_reader :index_base_name

      def initialize(index_base_name, message)
        @index_base_name = index_base_name
        super("#{index_base_name}: #{message}")
      end
    end

    autoload :SingleIndex, "elasticity/strategies/single_index"
    autoload :AliasIndex,  "elasticity/strategies/alias_index"
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
es-elasticity-1.0.0 lib/elasticity/strategies.rb
es-elasticity-1.0.0.jhumphreys lib/elasticity/strategies.rb