Class: ElasticRecord::AggregationResponse::SingleValueAggregation

Inherits:
Aggregation
  • Object
show all
Defined in:
lib/elastic_record/aggregation_response/single_value_aggregation.rb

Instance Attribute Summary collapse

Attributes inherited from Aggregation

#meta, #name, #results

Method Summary

Methods inherited from Aggregation

#initialize, #inspect

Constructor Details

This class inherits a constructor from ElasticRecord::AggregationResponse::Aggregation

Instance Attribute Details

#valueObject

Returns the value of attribute value.



4
5
6
# File 'lib/elastic_record/aggregation_response/single_value_aggregation.rb', line 4

def value
  @value
end

#value_as_stringObject

Returns the value of attribute value_as_string.



4
5
6
# File 'lib/elastic_record/aggregation_response/single_value_aggregation.rb', line 4

def value_as_string
  @value_as_string
end