Sha256: 8e4282d299749bbce4f78b0f17814bc5aa832cfae227800f9eedbb4eccecd162
Contents?: true
Size: 649 Bytes
Versions: 21
Compression:
Stored size: 649 Bytes
Contents
module TheCity class MetricMeasurementReader < ApiReader # Constructor. # # <b>metric_id</b> The ID of the metric that the measurement belongs to. # <b>measurement_id</b> The ID of the measurement to load. # <b>CacheAdapter cacher</b> (optional) The cacher to be used to cache data. def initialize(metric_id, measurement_id, cacher = nil) #@class_key = "metrics_#{metric_id}_measurements_#{measurement_id}" @url_data_path = "/metrics/#{metric_id}/measurements/#{measurement_id}" # The object to store and load the cache. @cacher = cacher unless cacher.nil? end end end
Version data entries
21 entries across 21 versions & 1 rubygems