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

Version Path
spark_api-1.4.4 lib/spark_api/models/market_statistics.rb
spark_api-1.4.2 lib/spark_api/models/market_statistics.rb
spark_api-1.4.1 lib/spark_api/models/market_statistics.rb
spark_api-1.4.0 lib/spark_api/models/market_statistics.rb
spark_api-1.3.28 lib/spark_api/models/market_statistics.rb
spark_api-1.3.27 lib/spark_api/models/market_statistics.rb
spark_api-1.3.26 lib/spark_api/models/market_statistics.rb
spark_api-1.3.25 lib/spark_api/models/market_statistics.rb
spark_api-1.3.24 lib/spark_api/models/market_statistics.rb
spark_api-1.3.23 lib/spark_api/models/market_statistics.rb
spark_api-1.3.21 lib/spark_api/models/market_statistics.rb
spark_api-1.3.20 lib/spark_api/models/market_statistics.rb
spark_api-1.3.19 lib/spark_api/models/market_statistics.rb
spark_api-1.3.18 lib/spark_api/models/market_statistics.rb
spark_api-1.3.17 lib/spark_api/models/market_statistics.rb
spark_api-1.3.16 lib/spark_api/models/market_statistics.rb
spark_api-1.3.15 lib/spark_api/models/market_statistics.rb
spark_api-1.3.14 lib/spark_api/models/market_statistics.rb
spark_api-1.3.13 lib/spark_api/models/market_statistics.rb
spark_api-1.3.10 lib/spark_api/models/market_statistics.rb