Module: OverwatchApi::Request
- Included in:
- BaseModel
- Defined in:
- lib/overwatch_api/request.rb
Instance Method Summary collapse
Instance Method Details
#get(path, options = {}) ⇒ Object
5 6 7 8 9 |
# File 'lib/overwatch_api/request.rb', line 5 def get(path, = {}) response = request(:get, path, ) raise OverwatchApi::ResponseError.new(response["message"]) unless response.code == 200 return response end |