class Dota2Api27n::Client

Constants

BASE_URL

Public Instance Methods

get(pathname, options) click to toggle source
# File lib/dota2_api27n/client.rb, line 5
def get(pathname, options)
  request = HTTParty.get("#{BASE_URL}#{pathname}#{options}")
  request.code != 200 ? (raise RequestError) : request
end