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-2.0.0 lib/spark_api/models/market_statistics.rb
spark_api-1.6.3 lib/spark_api/models/market_statistics.rb
spark_api-1.6.2 lib/spark_api/models/market_statistics.rb
spark_api-1.6.1 lib/spark_api/models/market_statistics.rb
spark_api-1.5.7 lib/spark_api/models/market_statistics.rb
spark_api-1.6.0 lib/spark_api/models/market_statistics.rb
spark_api-1.5.6 lib/spark_api/models/market_statistics.rb
spark_api-1.5.5 lib/spark_api/models/market_statistics.rb
spark_api-1.5.4 lib/spark_api/models/market_statistics.rb
spark_api-1.5.3 lib/spark_api/models/market_statistics.rb
spark_api-1.5.2 lib/spark_api/models/market_statistics.rb
spark_api-1.5.1 lib/spark_api/models/market_statistics.rb
spark_api-1.5.0 lib/spark_api/models/market_statistics.rb
spark_api-1.4.34 lib/spark_api/models/market_statistics.rb
spark_api-1.4.32 lib/spark_api/models/market_statistics.rb
spark_api-1.4.31 lib/spark_api/models/market_statistics.rb
spark_api-1.4.29 lib/spark_api/models/market_statistics.rb
spark_api-1.4.28 lib/spark_api/models/market_statistics.rb
spark_api-1.4.27 lib/spark_api/models/market_statistics.rb
spark_api-1.4.26 lib/spark_api/models/market_statistics.rb