Class: Elasticated::StatsAggregation
- Inherits:
-
Aggregation
- Object
- Aggregation
- Elasticated::StatsAggregation
- Defined in:
- lib/elasticated/aggregations/stats_aggregation.rb
Instance Attribute Summary
Attributes inherited from Aggregation
#alias_name, #extra_params, #field
Instance Method Summary collapse
Methods inherited from Aggregation
#initialize, #name, #original_name
Methods included from Mixins::Inspectionable
Methods included from Mixins::BlockEvaluation
Methods included from Mixins::Clonable
Constructor Details
This class inherits a constructor from Elasticated::Aggregation
Instance Method Details
#build ⇒ Object
4 5 6 |
# File 'lib/elasticated/aggregations/stats_aggregation.rb', line 4 def build { stats: { field: field } } end |
#parse(response) ⇒ Object
8 9 10 |
# File 'lib/elasticated/aggregations/stats_aggregation.rb', line 8 def parse(response) response end |