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