module Steam::Helpers

Helper Module

Constants

STORE_API_BASE_URL

Public Instance Methods

build_client(api, base_url: 'https://api.steampowered.com') click to toggle source

Conveniance method to build clients @param [String] api The endpoint of the API @param [String] base_url the root uri for steam's API @return [Steam::Client] The Client

# 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