Module: Steam::Economy
- Defined in:
- lib/steam-api/steam/economy.rb
Overview
A Ruby DSL for communicating with the Steam Web API.
Class Method Summary collapse
-
.asset_info(appid, params: {}) ⇒ Hash
Get Asset Class Info.
-
.asset_prices(appid, language: nil, currency: nil) ⇒ Hash
Get Asset Prices.
Class Method Details
.asset_info(appid, params: {}) ⇒ Hash
Get Asset Class Info
19 20 21 22 23 24 |
# File 'lib/steam-api/steam/economy.rb', line 19 def self.asset_info(appid, params: {}) params[:appid] = appid response = client.get 'GetAssetClassInfo/v1', params: params parse_response(response) end |
.asset_prices(appid, language: nil, currency: nil) ⇒ Hash
Get Asset Prices
35 36 37 38 39 40 41 42 |
# File 'lib/steam-api/steam/economy.rb', line 35 def self.asset_prices(appid, language: nil, currency: nil) params = { appid: appid } params[:language] = language unless language.nil? params[:currency] = currency unless currency.nil? response = client.get 'GetAssetPrices/v1', params: params parse_response(response) end |