Class: Elastic::Core::BaseMiddleware

Inherits:
Object
  • Object
show all
Defined in:
lib/elastic/core/base_middleware.rb

Direct Known Subclasses

DefaultMiddleware, Railties::ARMiddleware

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(_target) ⇒ BaseMiddleware

Returns a new instance of BaseMiddleware.



5
6
7
# File 'lib/elastic/core/base_middleware.rb', line 5

def initialize(_target)
  @target = _target
end

Instance Attribute Details

#targetObject (readonly)

Returns the value of attribute target.



3
4
5
# File 'lib/elastic/core/base_middleware.rb', line 3

def target
  @target
end

Instance Method Details

#build_from_data(_data, _options) ⇒ Object



29
30
31
# 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) ⇒ Object



17
18
19
# File 'lib/elastic/core/base_middleware.rb', line 17

def collect_all(_options, &_block)
  not_supported :collect_all
end

#collect_from(_collection, _options, &_block) ⇒ Object



21
22
23
# 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) ⇒ Object



13
14
15
# 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) ⇒ Object



25
26
27
# File 'lib/elastic/core/base_middleware.rb', line 25

def find_by_ids(_ids, _options)
  not_supported :find_by_ids
end

#modeObject



9
10
11
# File 'lib/elastic/core/base_middleware.rb', line 9

def mode
  not_supported :mode
end