Exception: PlayWhe::BadResponseError

Inherits:
NetworkError show all
Defined in:
lib/playwhe.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(response) ⇒ BadResponseError

Returns a new instance of BadResponseError.



77
78
79
80
# File 'lib/playwhe.rb', line 77

def initialize(response)
  @response = response
  super("status: #{response.status}, body: #{response.body}")
end

Instance Attribute Details

#responseObject (readonly)

Returns the value of attribute response.



75
76
77
# File 'lib/playwhe.rb', line 75

def response
  @response
end