Sha256: 0df582d9fd0660ec8582243472f2409a641572c5942c87c8fe91c865fca5fb58

Contents?: true

Size: 778 Bytes

Versions: 14

Compression:

Stored size: 778 Bytes

Contents

# frozen_string_literal: true

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

      def type_name
        repo_name
      end
      deprecate :type_name, :repo_type, 2023, 12

      def mappings(*args, &block)
        warning("#{self}.mappings", "#{index}.mappings", 2023, 12)

        index.mappings(*args, &block)
      end

      def serializer(*args, **kwargs, &block)
        warning("#{self}.serializer", "#{self}.document", 2023, 12)

        document(*args, **kwargs, &block)
      end

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

      def backend
        Esse::Deprecations::RepositoryBackendDelegator.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/repository.rb
esse-0.4.0.rc3 lib/esse/deprecations/repository.rb
esse-0.4.0.rc2 lib/esse/deprecations/repository.rb
esse-0.4.0.rc1 lib/esse/deprecations/repository.rb
esse-0.3.5 lib/esse/deprecations/repository.rb
esse-0.3.4 lib/esse/deprecations/repository.rb
esse-0.3.3 lib/esse/deprecations/repository.rb
esse-0.3.2 lib/esse/deprecations/repository.rb
esse-0.3.1 lib/esse/deprecations/repository.rb
esse-0.3.0 lib/esse/deprecations/repository.rb
esse-0.2.6 lib/esse/deprecations/repository.rb
esse-0.2.5 lib/esse/deprecations/repository.rb
esse-0.2.4 lib/esse/deprecations/repository.rb
esse-0.2.3 lib/esse/deprecations/repository.rb