Method: Webex::Errors::Error#initialize
- Defined in:
- lib/webex/errors/error.rb
#initialize(response) ⇒ Error
Returns a new instance of Error.
9 10 11 12 13 14 15 |
# File 'lib/webex/errors/error.rb', line 9 def initialize(response) @response = response @status = response.status @message = response.body['message'] @extensions = response.body['extensions'] @code = @extensions&.[]('code') end |