Class: Stew::Store::SalesClient
- Inherits:
-
Object
- Object
- Stew::Store::SalesClient
- Defined in:
- lib/stew/store/sales_client.rb
Overview
Creation of sales objects
Constant Summary collapse
- STORE_URL =
'http://store.steampowered.com'
Instance Method Summary collapse
-
#initialize(opts = {}) ⇒ SalesClient
constructor
A new instance of SalesClient.
- #sales(region = Stew.config[:default_region]) ⇒ Object
Constructor Details
#initialize(opts = {}) ⇒ SalesClient
Returns a new instance of SalesClient.
7 8 9 |
# File 'lib/stew/store/sales_client.rb', line 7 def initialize(opts = {}) @client = opts[:client] || Stew.config[:default_web_client].new(STORE_URL) end |