Sha256: c2d9707447387bc8d90b45f4b93c7633273aec18f48cc965507e0651c6088fdc
Contents?: true
Size: 473 Bytes
Versions: 21
Compression:
Stored size: 473 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
21 entries across 21 versions & 1 rubygems