Sha256: 9b318d8c471fe81d6a3679e7ee3f52be8787b5d55a043277ada6df3678084523
Contents?: true
Size: 823 Bytes
Versions: 74
Compression:
Stored size: 823 Bytes
Contents
module SparkApi module Models class MarketStatistics < Base self.element_name="marketstatistics" def self.absorption(parameters={}) self.stat('absorption',parameters) end def self.inventory(parameters={}) self.stat('inventory',parameters) end def self.price(parameters={}) self.stat('price',parameters) end def self.ratio(parameters={}) self.stat('ratio',parameters) end def self.dom(parameters={}) self.stat('dom',parameters) end def self.volume(parameters={}) self.stat('volume',parameters) end private def self.stat(stat_name, parameters={}) resp = connection.get("#{path}/#{stat_name}", parameters) new(resp.first) end end end end
Version data entries
74 entries across 74 versions & 1 rubygems