Class: Elastic::Nodes::BaseAgg
- Defined in:
- lib/elastic/nodes/base_agg.rb
Direct Known Subclasses
Agg::BaseMetric, Agg::DateHistogram, Agg::Terms, Agg::Top, TopHits
Instance Attribute Summary collapse
-
#name ⇒ Object
Returns the value of attribute name.
Class Method Summary collapse
Instance Method Summary collapse
- #clone ⇒ Object
-
#initialize ⇒ BaseAgg
constructor
A new instance of BaseAgg.
- #simplify ⇒ Object
Methods inherited from Base
#==, #handle_result, #render, #traverse
Methods included from Support::Traversable
Constructor Details
#initialize ⇒ BaseAgg
Returns a new instance of BaseAgg.
9 10 11 |
# File 'lib/elastic/nodes/base_agg.rb', line 9 def initialize @name = :default end |
Instance Attribute Details
#name ⇒ Object
Returns the value of attribute name.
3 4 5 |
# File 'lib/elastic/nodes/base_agg.rb', line 3 def name @name end |
Class Method Details
.build(_name) ⇒ Object
5 6 7 |
# File 'lib/elastic/nodes/base_agg.rb', line 5 def self.build(_name) new.tap { |n| n.name = _name } end |
Instance Method Details
#clone ⇒ Object
17 18 19 |
# File 'lib/elastic/nodes/base_agg.rb', line 17 def clone copy_name super end |
#simplify ⇒ Object
21 22 23 |
# File 'lib/elastic/nodes/base_agg.rb', line 21 def simplify copy_name super end |