class Elastic::Core::BaseMiddleware

Attributes

target[R]

Public Class Methods

new(_target) click to toggle source
# File lib/elastic/core/base_middleware.rb, line 5
def initialize(_target)
  @target = _target
end

Public Instance Methods

build_from_data(_data, _options) click to toggle source
# File lib/elastic/core/base_middleware.rb, line 29
def build_from_data(_data, _options)
  not_supported :build_from_data
end
collect_all(_options, &_block) click to toggle source
# File lib/elastic/core/base_middleware.rb, line 17
def collect_all(_options, &_block)
  not_supported :collect_all
end
collect_from(_collection, _options, &_block) click to toggle source
# File lib/elastic/core/base_middleware.rb, line 21
def collect_from(_collection, _options, &_block)
  not_supported :collect_from
end
field_options_for(_field, _options) click to toggle source
# File lib/elastic/core/base_middleware.rb, line 13
def field_options_for(_field, _options)
  not_supported :field_options_for
end
find_by_ids(_ids, _options) click to toggle source
# File lib/elastic/core/base_middleware.rb, line 25
def find_by_ids(_ids, _options)
  not_supported :find_by_ids
end
mode() click to toggle source
# File lib/elastic/core/base_middleware.rb, line 9
def mode
  not_supported :mode
end

Private Instance Methods

not_supported(_feature) click to toggle source
# File lib/elastic/core/base_middleware.rb, line 35
def not_supported(_feature)
  raise NotImplementedError, "#{self.class} does not support '#{_feature}'"
end