Method: Smartsheet::ApiError#initialize
- Defined in:
- lib/smartsheet/error.rb
#initialize(error_response) ⇒ ApiError
Returns a new instance of ApiError.
54 55 56 57 58 59 60 61 62 |
# File 'lib/smartsheet/error.rb', line 54 def initialize(error_response) super( status_code: error_response.status_code, reason_phrase: error_response.reason_phrase, headers: error_response.headers, message: error_response. ) @error_response = error_response end |