Class: PaypalServerSdk::ApiResponse

Inherits:
CoreLibrary::ApiResponse
  • Object
show all
Defined in:
lib/paypal_server_sdk/http/api_response.rb

Overview

Http response received.

Instance Method Summary collapse

Constructor Details

#initialize(http_response, data: nil, errors: nil) ⇒ ApiResponse

The constructor

Parameters:

  • http_response (HttpResponse)

    The original, raw response from the api.

  • data (Object) (defaults to: nil)

    The data field specified for the response.

  • errors (Array<String>) (defaults to: nil)

    Any errors returned by the server.



15
16
17
18
19
# File 'lib/paypal_server_sdk/http/api_response.rb', line 15

def initialize(http_response,
               data: nil,
               errors: nil)
  super
end