Class: Elastic::Shims::Base
- Inherits:
-
Object
- Object
- Elastic::Shims::Base
- Includes:
- Elastic::Support::Traversable
- Defined in:
- lib/elastic/shims/base.rb
Direct Known Subclasses
FieldPicking, Grouping, IdPicking, MultipleAggregation, Populating, SingleAggregation, TotalPicking
Instance Attribute Summary collapse
-
#child ⇒ Object
readonly
Returns the value of attribute child.
Instance Method Summary collapse
- #handle_result(_raw, _formatter) ⇒ Object
-
#initialize(_child) ⇒ Base
constructor
A new instance of Base.
- #render(_options = {}) ⇒ Object
- #traverse(&_block) ⇒ Object
Methods included from Elastic::Support::Traversable
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
#child ⇒ Object (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( = {}) @child.render() end |
#traverse(&_block) ⇒ Object
11 12 13 |
# File 'lib/elastic/shims/base.rb', line 11 def traverse(&_block) @child.traverse(&_block) end |