Module: Steam::Helpers
- Defined in:
- lib/steam-api/helpers.rb
Overview
Helper Module
Constant Summary collapse
- STORE_API_BASE_URL =
'https://store.steampowered.com/api'
Instance Method Summary collapse
-
#build_client(api, base_url: 'https://api.steampowered.com') ⇒ Steam::Client
Conveniance method to build clients.
Instance Method Details
#build_client(api, base_url: 'https://api.steampowered.com') ⇒ Steam::Client
Conveniance method to build clients
8 9 10 |
# File 'lib/steam-api/helpers.rb', line 8 def build_client(api, base_url: 'https://api.steampowered.com') Steam::Client.new([base_url, api].join('/')) end |