Method: Vhx::VhxError#initialize
- Defined in:
- lib/vhx/error.rb
#initialize(response_body, response_status, url) ⇒ VhxError
5 6 7 8 9 10 11 12 |
# File 'lib/vhx/error.rb', line 5 def initialize(response_body, response_status, url) @response_body = response_body @response_status = response_status @url = url = response_body.is_a?(Hash) ? response_body['message'] : response_body.to_s super() end |