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

Version Path
the-city-admin-0.1.4 lib/readers/metric_reader.rb
the-city-admin-0.1.3 lib/readers/metric_reader.rb
the-city-admin-0.1.2 lib/readers/metric_reader.rb
the-city-admin-0.1.1 lib/readers/metric_reader.rb
the-city-admin-0.1.0 lib/readers/metric_reader.rb