Exception: PlayWhe::BadResponseError
- Inherits:
-
NetworkError
- Object
- StandardError
- Error
- NetworkError
- PlayWhe::BadResponseError
- Defined in:
- lib/playwhe.rb
Instance Attribute Summary collapse
-
#response ⇒ Object
readonly
Returns the value of attribute response.
Instance Method Summary collapse
-
#initialize(response) ⇒ BadResponseError
constructor
A new instance of BadResponseError.
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
#response ⇒ Object (readonly)
Returns the value of attribute response.
75 76 77 |
# File 'lib/playwhe.rb', line 75 def response @response end |