Module: Stew
- Defined in:
- lib/stew.rb,
lib/stew/version.rb,
lib/stew/store/app.rb,
lib/stew/store/sale.rb,
lib/stew/store/sales.rb,
lib/stew/store/app_offer.rb,
lib/stew/store/app_offers.rb,
lib/stew/store/web_client.rb,
lib/stew/community/profile.rb,
lib/stew/community/steam_id.rb,
lib/stew/store/sales_client.rb,
lib/stew/store/store_client.rb,
lib/stew/community/web_client.rb,
lib/stew/store/app_offer_sale.rb,
lib/stew/community/profile_game.rb,
lib/stew/community/profile_games.rb,
lib/stew/community/web_api_client.rb,
lib/stew/community/profile_friends.rb,
lib/stew/community/steam_id_resolver.rb
Defined Under Namespace
Modules: Community, Store
Classes: StewError
Constant Summary
collapse
- VERSION =
"0.6.0"
Class Method Summary
collapse
Class Method Details
.config ⇒ Object
47
48
49
|
# File 'lib/stew.rb', line 47
def self.config
@config
end
|
43
44
45
|
# File 'lib/stew.rb', line 43
def self.configure(opts = {})
opts.each {|key,value| @config[key] = value if @valid_config_keys.include? key}
end
|
.money(price) ⇒ Object
51
52
53
54
55
56
57
|
# File 'lib/stew.rb', line 51
def self.money(price)
if price.nil? == false && price.include?("€")
Money.parse(price[-1,1]+price[0..-2])
else
Money.parse price
end
end
|