Class: Orchestrate::Search::RangeResult
- Inherits:
-
AggregateResult
- Object
- AggregateResult
- Orchestrate::Search::RangeResult
- Defined in:
- lib/orchestrate/search/results.rb
Overview
Range Aggregate result object
Direct Known Subclasses
Instance Attribute Summary collapse
-
#buckets ⇒ Array
readonly
Range buckets/sets results.
Attributes inherited from AggregateResult
#collection, #count, #field_name, #kind
Instance Method Summary collapse
-
#initialize(collection, listing) ⇒ RangeResult
constructor
Initialize a new RangeResult object.
-
#to_s ⇒ Object
(also: #inspect)
Pretty-Printed string representation of the RangeResult object.
Constructor Details
#initialize(collection, listing) ⇒ RangeResult
Initialize a new RangeResult object
183 184 185 186 |
# File 'lib/orchestrate/search/results.rb', line 183 def initialize(collection, listing) super(collection, listing) @buckets = listing['buckets'] end |
Instance Attribute Details
#buckets ⇒ Array (readonly)
Returns Range buckets/sets results.
178 179 180 |
# File 'lib/orchestrate/search/results.rb', line 178 def buckets @buckets end |
Instance Method Details
#to_s ⇒ Object Also known as: inspect
Returns Pretty-Printed string representation of the RangeResult object.
189 190 191 |
# File 'lib/orchestrate/search/results.rb', line 189 def to_s "#<Orchestrate::Search::RangeResult collection=#{collection.name} field_name=#{field_name} buckets=#{buckets}>" end |