Sha256: 953787050fa03b261a99de7c07609b3bc0f9ae9bd28f0a862a9a27b66a453cdb

Contents?: true

Size: 376 Bytes

Versions: 5

Compression:

Stored size: 376 Bytes

Contents

module AgnosticBackend
  class Index

    def initialize(indexable_klass)
      @indexable_klass = indexable_klass
    end

    def name
      @indexable_klass.index_name
    end

    def schema
      @indexable_klass.schema
    end

    def indexer
      raise NotImplementedError
    end

    def configure(new_schema = nil)
      raise NotImplementedError
    end
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
agnostic_backend-0.9.4 lib/agnostic_backend/index.rb
agnostic_backend-0.9.3 lib/agnostic_backend/index.rb
agnostic_backend-0.9.2 lib/agnostic_backend/index.rb
agnostic_backend-0.9.1 lib/agnostic_backend/index.rb
agnostic_backend-0.9.0 lib/agnostic_backend/index.rb