Class: PayuAPI::GetResponse

Inherits:
Response show all
Defined in:
lib/payu_api/responses/get_response.rb

Constant Summary

Constants inherited from Response

Response::SUCCESS_HTTP_STATUSES, Response::SUCCESS_STATUSES

Instance Method Summary collapse

Methods inherited from Response

#error?, #error_code, #error_message, #success?

Instance Method Details

#orderObject



3
4
5
# File 'lib/payu_api/responses/get_response.rb', line 3

def order
  body[:orders] && body[:orders][0]
end