Sha256: 6cf32e2a05b68f8e47f2e7c6829ba3e874a321fdf9ba6a4a0805061f9e6c3291

Contents?: true

Size: 360 Bytes

Versions: 4

Compression:

Stored size: 360 Bytes

Contents

module Steam
  module Helpers
    # 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
    def build_client(api, base_url: 'http://api.steampowered.com')
      Steam::Client.new([base_url, api].join('/'))
    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
steam-api-1.0.3 lib/steam-api/helpers.rb
steam-api-1.0.2 lib/steam-api/helpers.rb
steam-api-1.0.1 lib/steam-api/helpers.rb
steam-api-1.0.0 lib/steam-api/helpers.rb