Class: Payoneer::Payout::Status
- Inherits:
-
Response
- Object
- Response
- Payoneer::Payout::Status
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
Instance Method Details
#cancelled? ⇒ Boolean
7
8
9
|
# File 'lib/payoneer/responses/payout/status.rb', line 7
def cancelled?
status == 'Cancelled'
end
|
#pending? ⇒ Boolean
15
16
17
|
# File 'lib/payoneer/responses/payout/status.rb', line 15
def pending?
%w[Pending Pending \Payee].include? status
end
|
#rejected? ⇒ Boolean
3
4
5
|
# File 'lib/payoneer/responses/payout/status.rb', line 3
def rejected?
reason_code.present?
end
|
#success? ⇒ Boolean
11
12
13
|
# File 'lib/payoneer/responses/payout/status.rb', line 11
def success?
status == 'Transferred'
end
|