Class: TheCity::MetricMeasurementValuesReader
- Defined in:
- lib/readers/metric_measurement_values_reader.rb
Instance Attribute Summary
Attributes inherited from ApiReader
Instance Method Summary collapse
-
#initialize(options = {}, cacher = nil) ⇒ MetricMeasurementValuesReader
constructor
Constructor.
Methods inherited from ApiReader
#load_feed, #rate_limit, #rate_limit_remaining
Constructor Details
#initialize(options = {}, cacher = nil) ⇒ MetricMeasurementValuesReader
Constructor.
10 11 12 13 14 15 16 |
# File 'lib/readers/metric_measurement_values_reader.rb', line 10 def initialize( = {}, cacher = nil) metric_id = .delete(:metric_id) @url_data_path = "/metrics/#{metric_id}/measurements/values" # The object to store and load the cache. @cacher = cacher unless cacher.nil? end |