Sha256: 0efb6ceee5db627ce76bc29c018a9bb735ff295f782734f4350b0d89360495b0

Contents?: true

Size: 857 Bytes

Versions: 14

Compression:

Stored size: 857 Bytes

Contents

# frozen_string_literal: true

module Esse
  class Index
    class << self
      extend Esse::Deprecations::Deprecate

      def define_type(name, *args, **kwargs, &block)
        repository(name, *args, **kwargs, &block)
      end
      deprecate :define_type, :repository, 2023, 12

      def type_hash
        repo_hash
      end
      deprecate :type_hash, :repo_hash, 2023, 12

      def index_version
        index_suffix
      end
      deprecate :index_version, :index_suffix, 2023, 12

      def index_version=(value)
        self.index_suffix = value
      end
      deprecate :index_version=, :index_suffix=, 2023, 12

      def elasticsearch
        Esse::Deprecations::IndexBackendDelegator.new(:elasticsearch, self)
      end

      def backend
        Esse::Deprecations::IndexBackendDelegator.new(:backend, self)
      end
    end
  end
end

Version data entries

14 entries across 14 versions & 1 rubygems

Version Path
esse-0.4.0.rc4 lib/esse/deprecations/index.rb
esse-0.4.0.rc3 lib/esse/deprecations/index.rb
esse-0.4.0.rc2 lib/esse/deprecations/index.rb
esse-0.4.0.rc1 lib/esse/deprecations/index.rb
esse-0.3.5 lib/esse/deprecations/index.rb
esse-0.3.4 lib/esse/deprecations/index.rb
esse-0.3.3 lib/esse/deprecations/index.rb
esse-0.3.2 lib/esse/deprecations/index.rb
esse-0.3.1 lib/esse/deprecations/index.rb
esse-0.3.0 lib/esse/deprecations/index.rb
esse-0.2.6 lib/esse/deprecations/index.rb
esse-0.2.5 lib/esse/deprecations/index.rb
esse-0.2.4 lib/esse/deprecations/index.rb
esse-0.2.3 lib/esse/deprecations/index.rb