Class: Orchestrate::Search::TimeSeriesResult
- Inherits:
-
RangeResult
- Object
- AggregateResult
- RangeResult
- Orchestrate::Search::TimeSeriesResult
- Defined in:
- lib/orchestrate/search/results.rb
Overview
Time Series Aggregate result object
Instance Attribute Summary collapse
-
#interval ⇒ #to_s
readonly
Time interval.
Attributes inherited from RangeResult
Attributes inherited from AggregateResult
#collection, #count, #field_name, #kind
Instance Method Summary collapse
-
#initialize(collection, listing) ⇒ TimeSeriesResult
constructor
Initialize a new TimeSeriesResult object.
-
#to_s ⇒ Object
(also: #inspect)
Pretty-Printed string representation of the TimeSeriesResult object.
Constructor Details
#initialize(collection, listing) ⇒ TimeSeriesResult
Initialize a new TimeSeriesResult object
212 213 214 215 |
# File 'lib/orchestrate/search/results.rb', line 212 def initialize(collection, listing) super(collection, listing) @interval = listing['interval'] end |
Instance Attribute Details
#interval ⇒ #to_s (readonly)
Returns Time interval.
207 208 209 |
# File 'lib/orchestrate/search/results.rb', line 207 def interval @interval end |
Instance Method Details
#to_s ⇒ Object Also known as: inspect
Returns Pretty-Printed string representation of the TimeSeriesResult object.
218 219 220 |
# File 'lib/orchestrate/search/results.rb', line 218 def to_s "#<Orchestrate::Search::TimeSeriesResult collection=#{collection.name} field_name=#{field_name} interval=#{interval} buckets=#{buckets}>" end |