Method: WhatsappSdk::Api::Responses::HttpResponseError#initialize
- Defined in:
- lib/whatsapp_sdk/api/responses/http_response_error.rb
#initialize(http_status:, body:) ⇒ HttpResponseError
Returns a new instance of HttpResponseError.
9 10 11 12 13 14 |
# File 'lib/whatsapp_sdk/api/responses/http_response_error.rb', line 9 def initialize(http_status:, body:) super @http_status = http_status @body = body @error_info = GenericErrorResponse.build_from_response(response: body) end |