Class: Payoneer::Payout::Status

Inherits:
Response
  • Object
show all
Defined in:
lib/payoneer/responses/payout/status.rb

Instance Attribute Summary

Attributes inherited from Response

#body

Instance Method Summary collapse

Methods inherited from Response

convert, #initialize

Constructor Details

This class inherits a constructor from Payoneer::Response

Instance Method Details

#cancelled?Boolean

Returns:

  • (Boolean)


7
8
9
# File 'lib/payoneer/responses/payout/status.rb', line 7

def cancelled?
  status == 'Cancelled'
end

#pending?Boolean

Returns:

  • (Boolean)


15
16
17
# File 'lib/payoneer/responses/payout/status.rb', line 15

def pending?
  %w[Pending Pending \Payee].include? status
end

#rejected?Boolean

Returns:

  • (Boolean)


3
4
5
# File 'lib/payoneer/responses/payout/status.rb', line 3

def rejected?
  reason_code.present?
end

#success?Boolean

Returns:

  • (Boolean)


11
12
13
# File 'lib/payoneer/responses/payout/status.rb', line 11

def success?
  status == 'Transferred'
end