Class: Pinot::AggregationResult
- Inherits:
-
Object
- Object
- Pinot::AggregationResult
- Defined in:
- lib/pinot/response.rb
Instance Attribute Summary collapse
-
#function ⇒ Object
readonly
Returns the value of attribute function.
-
#group_by_columns ⇒ Object
readonly
Returns the value of attribute group_by_columns.
-
#group_by_result ⇒ Object
readonly
Returns the value of attribute group_by_result.
-
#value ⇒ Object
readonly
Returns the value of attribute value.
Instance Method Summary collapse
-
#initialize(hash) ⇒ AggregationResult
constructor
A new instance of AggregationResult.
Constructor Details
#initialize(hash) ⇒ AggregationResult
Returns a new instance of AggregationResult.
60 61 62 63 64 65 |
# File 'lib/pinot/response.rb', line 60 def initialize(hash) @function = hash["function"] @value = hash["value"] @group_by_columns = hash["groupByColumns"] @group_by_result = hash["groupByResult"] end |
Instance Attribute Details
#function ⇒ Object (readonly)
Returns the value of attribute function.
58 59 60 |
# File 'lib/pinot/response.rb', line 58 def function @function end |
#group_by_columns ⇒ Object (readonly)
Returns the value of attribute group_by_columns.
58 59 60 |
# File 'lib/pinot/response.rb', line 58 def group_by_columns @group_by_columns end |
#group_by_result ⇒ Object (readonly)
Returns the value of attribute group_by_result.
58 59 60 |
# File 'lib/pinot/response.rb', line 58 def group_by_result @group_by_result end |
#value ⇒ Object (readonly)
Returns the value of attribute value.
58 59 60 |
# File 'lib/pinot/response.rb', line 58 def value @value end |