Exception: Lol::InvalidAPIResponse

Inherits:
StandardError
  • Object
show all
Defined in:
lib/lol/invalid_api_response.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(url, response) ⇒ InvalidAPIResponse

Returns a new instance of InvalidAPIResponse.



5
6
7
8
# File 'lib/lol/invalid_api_response.rb', line 5

def initialize url, response
  @raw = extract_raw_response_info response
  super "#{raw[:status]} calling #{url}"
end

Instance Attribute Details

#rawObject (readonly)

Returns the value of attribute raw.



3
4
5
# File 'lib/lol/invalid_api_response.rb', line 3

def raw
  @raw
end