Class: Payoneer::PerformPayoutPaymentResponse

Inherits:
Object
  • Object
show all
Defined in:
lib/payoneer/perform_payout_payment_response.rb

Instance Method Summary collapse

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_messageObject



17
18
19
# File 'lib/payoneer/perform_payout_payment_response.rb', line 17

def error_message
  @doc.PerformPayoutPayment.Description.content
end

#payment_idObject



25
26
27
# File 'lib/payoneer/perform_payout_payment_response.rb', line 25

def payment_id
  @doc.PerformPayoutPayment.PaymentID.content
end

#payoneer_idObject



21
22
23
# File 'lib/payoneer/perform_payout_payment_response.rb', line 21

def payoneer_id
  @doc.PerformPayoutPayment.PayoneerID.content
end

#status_codeObject



13
14
15
# File 'lib/payoneer/perform_payout_payment_response.rb', line 13

def status_code
  @doc.PerformPayoutPayment.Status.content
end

#success?Boolean

Returns:

  • (Boolean)


9
10
11
# File 'lib/payoneer/perform_payout_payment_response.rb', line 9

def success?
  status_code === "000"
end