Class: Elastic::Shims::Base

Inherits:
Object
  • Object
show all
Includes:
Elastic::Support::Traversable
Defined in:
lib/elastic/shims/base.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Elastic::Support::Traversable

#pick_nodes

Constructor Details

#initialize(_child) ⇒ Base

Returns a new instance of Base.



7
8
9
# File 'lib/elastic/shims/base.rb', line 7

def initialize(_child)
  @child = _child
end

Instance Attribute Details

#childObject (readonly)

Returns the value of attribute child.



5
6
7
# File 'lib/elastic/shims/base.rb', line 5

def child
  @child
end

Instance Method Details

#handle_result(_raw, _formatter) ⇒ Object



19
20
21
# File 'lib/elastic/shims/base.rb', line 19

def handle_result(_raw, _formatter)
  @child.handle_result(_raw, _formatter)
end

#render(_options = {}) ⇒ Object



15
16
17
# File 'lib/elastic/shims/base.rb', line 15

def render(_options = {})
  @child.render(_options)
end

#traverse(&_block) ⇒ Object



11
12
13
# File 'lib/elastic/shims/base.rb', line 11

def traverse(&_block)
  @child.traverse(&_block)
end