def get(resource, params: {}, key: Steam.apikey)
      params[:key] = key
      response = @conn.get resource, params
      JSON.parse(response.body)
    rescue JSON::ParserError
      # If the steam web api returns an error it's virtually never in json, so
      #   lets pretend that we're getting some sort of consistant response
      #   for errors.
      { error: '500 Internal Server Error' }
    end
def get(resource, params: {}, key: Steam.apikey)
      params[:key] = key
      response = @conn.get resource, params
      JSON.parse(response.body)
    rescue JSON::ParserError
      # If the steam web api returns an error it's virtually never in json, so
      #   lets pretend that we're getting some sort of consistant response
      #   for errors.
      { error: '500 Internal Server Error' }
    end
overriding the get method of Faraday to make things simpler.
 @param [String] resource the resource you're targeting
 @param [Hash] params Hash of parameters to pass to the resource
 @param [String] key Steam API key