class Orchestrate::Search::RangeResult
Range Aggregate result object
Attributes
buckets[R]
@return [Array] Range buckets/sets results
Public Class Methods
new(collection, listing)
click to toggle source
Initialize a new RangeResult
object @param collection [Orchestrate::Collection] The collection searched. @param listing [#to_json] The aggregate result returned from the search.
Calls superclass method
Orchestrate::Search::AggregateResult::new
# File lib/orchestrate/search/results.rb, line 183 def initialize(collection, listing) super(collection, listing) @buckets = listing['buckets'] end
Public Instance Methods
to_s()
click to toggle source
@return Pretty-Printed string representation of the RangeResult
object
# File lib/orchestrate/search/results.rb, line 189 def to_s "#<Orchestrate::Search::RangeResult collection=#{collection.name} field_name=#{field_name} buckets=#{buckets}>" end
Also aliased as: inspect