Class: Payoneer::PerformPayoutPaymentResponse
- Inherits:
-
Object
- Object
- Payoneer::PerformPayoutPaymentResponse
- Defined in:
- lib/payoneer/perform_payout_payment_response.rb
Instance Method Summary collapse
- #error_message ⇒ Object
-
#initialize(payload) ⇒ PerformPayoutPaymentResponse
constructor
A new instance of PerformPayoutPaymentResponse.
- #payment_id ⇒ Object
- #payoneer_id ⇒ Object
- #status_code ⇒ Object
- #success? ⇒ Boolean
Constructor Details
#initialize(payload) ⇒ PerformPayoutPaymentResponse
Returns a new instance of PerformPayoutPaymentResponse.
5 6 7 |
# File 'lib/payoneer/perform_payout_payment_response.rb', line 5 def initialize(payload) @doc = Nokogiri::Slop(payload) end |
Instance Method Details
#error_message ⇒ Object
17 18 19 |
# File 'lib/payoneer/perform_payout_payment_response.rb', line 17 def @doc.PerformPayoutPayment.Description.content end |
#payment_id ⇒ Object
25 26 27 |
# File 'lib/payoneer/perform_payout_payment_response.rb', line 25 def payment_id @doc.PerformPayoutPayment.PaymentID.content end |
#payoneer_id ⇒ Object
21 22 23 |
# File 'lib/payoneer/perform_payout_payment_response.rb', line 21 def payoneer_id @doc.PerformPayoutPayment.PayoneerID.content end |
#status_code ⇒ Object
13 14 15 |
# File 'lib/payoneer/perform_payout_payment_response.rb', line 13 def status_code @doc.PerformPayoutPayment.Status.content end |
#success? ⇒ Boolean
9 10 11 |
# File 'lib/payoneer/perform_payout_payment_response.rb', line 9 def success? status_code === "000" end |