Class: PayoneerApi::Payee
Instance Attribute Summary collapse
-
#address1 ⇒ Object
readonly
Returns the value of attribute address1.
-
#address2 ⇒ Object
readonly
Returns the value of attribute address2.
-
#card_activation_status ⇒ Object
readonly
Returns the value of attribute card_activation_status.
-
#card_id ⇒ Object
readonly
Returns the value of attribute card_id.
-
#card_ship_date ⇒ Object
readonly
Returns the value of attribute card_ship_date.
-
#card_status ⇒ Object
readonly
Returns the value of attribute card_status.
-
#cards ⇒ Object
readonly
Returns the value of attribute cards.
-
#city ⇒ Object
readonly
Returns the value of attribute city.
-
#country ⇒ Object
readonly
Returns the value of attribute country.
-
#email ⇒ Object
readonly
Returns the value of attribute email.
-
#first_name ⇒ Object
readonly
Returns the value of attribute first_name.
-
#last_name ⇒ Object
readonly
Returns the value of attribute last_name.
-
#mobile ⇒ Object
readonly
Returns the value of attribute mobile.
-
#pay_out_method ⇒ Object
readonly
Returns the value of attribute pay_out_method.
-
#payee_status ⇒ Object
readonly
Returns the value of attribute payee_status.
-
#phone ⇒ Object
readonly
Returns the value of attribute phone.
-
#reg_date ⇒ Object
readonly
Returns the value of attribute reg_date.
-
#state ⇒ Object
readonly
Returns the value of attribute state.
-
#zip ⇒ Object
readonly
Returns the value of attribute zip.
Attributes inherited from Base
Instance Method Summary collapse
- #card? ⇒ Boolean
- #direct_deposit? ⇒ Boolean
- #iach? ⇒ Boolean
-
#initialize(attrs = {}) ⇒ Payee
constructor
A new instance of Payee.
Constructor Details
#initialize(attrs = {}) ⇒ Payee
Returns a new instance of Payee.
7 8 9 10 |
# File 'lib/payoneer_api/payee.rb', line 7 def initialize(attrs = {}) super initialize_card_attrs if card? end |
Instance Attribute Details
#address1 ⇒ Object (readonly)
Returns the value of attribute address1.
3 4 5 |
# File 'lib/payoneer_api/payee.rb', line 3 def address1 @address1 end |
#address2 ⇒ Object (readonly)
Returns the value of attribute address2.
3 4 5 |
# File 'lib/payoneer_api/payee.rb', line 3 def address2 @address2 end |
#card_activation_status ⇒ Object (readonly)
Returns the value of attribute card_activation_status.
3 4 5 |
# File 'lib/payoneer_api/payee.rb', line 3 def card_activation_status @card_activation_status end |
#card_id ⇒ Object (readonly)
Returns the value of attribute card_id.
3 4 5 |
# File 'lib/payoneer_api/payee.rb', line 3 def card_id @card_id end |
#card_ship_date ⇒ Object (readonly)
Returns the value of attribute card_ship_date.
3 4 5 |
# File 'lib/payoneer_api/payee.rb', line 3 def card_ship_date @card_ship_date end |
#card_status ⇒ Object (readonly)
Returns the value of attribute card_status.
3 4 5 |
# File 'lib/payoneer_api/payee.rb', line 3 def card_status @card_status end |
#cards ⇒ Object (readonly)
Returns the value of attribute cards.
3 4 5 |
# File 'lib/payoneer_api/payee.rb', line 3 def cards @cards end |
#city ⇒ Object (readonly)
Returns the value of attribute city.
3 4 5 |
# File 'lib/payoneer_api/payee.rb', line 3 def city @city end |
#country ⇒ Object (readonly)
Returns the value of attribute country.
3 4 5 |
# File 'lib/payoneer_api/payee.rb', line 3 def country @country end |
#email ⇒ Object (readonly)
Returns the value of attribute email.
3 4 5 |
# File 'lib/payoneer_api/payee.rb', line 3 def email @email end |
#first_name ⇒ Object (readonly)
Returns the value of attribute first_name.
3 4 5 |
# File 'lib/payoneer_api/payee.rb', line 3 def first_name @first_name end |
#last_name ⇒ Object (readonly)
Returns the value of attribute last_name.
3 4 5 |
# File 'lib/payoneer_api/payee.rb', line 3 def last_name @last_name end |
#mobile ⇒ Object (readonly)
Returns the value of attribute mobile.
3 4 5 |
# File 'lib/payoneer_api/payee.rb', line 3 def mobile @mobile end |
#pay_out_method ⇒ Object (readonly)
Returns the value of attribute pay_out_method.
3 4 5 |
# File 'lib/payoneer_api/payee.rb', line 3 def pay_out_method @pay_out_method end |
#payee_status ⇒ Object (readonly)
Returns the value of attribute payee_status.
3 4 5 |
# File 'lib/payoneer_api/payee.rb', line 3 def payee_status @payee_status end |
#phone ⇒ Object (readonly)
Returns the value of attribute phone.
3 4 5 |
# File 'lib/payoneer_api/payee.rb', line 3 def phone @phone end |
#reg_date ⇒ Object (readonly)
Returns the value of attribute reg_date.
3 4 5 |
# File 'lib/payoneer_api/payee.rb', line 3 def reg_date @reg_date end |
#state ⇒ Object (readonly)
Returns the value of attribute state.
3 4 5 |
# File 'lib/payoneer_api/payee.rb', line 3 def state @state end |
#zip ⇒ Object (readonly)
Returns the value of attribute zip.
3 4 5 |
# File 'lib/payoneer_api/payee.rb', line 3 def zip @zip end |
Instance Method Details
#card? ⇒ Boolean
12 13 14 |
# File 'lib/payoneer_api/payee.rb', line 12 def card? pay_out_method == 'Prepaid Card' end |
#direct_deposit? ⇒ Boolean
16 17 18 |
# File 'lib/payoneer_api/payee.rb', line 16 def direct_deposit? pay_out_method == 'Direct deposit' end |
#iach? ⇒ Boolean
20 21 22 |
# File 'lib/payoneer_api/payee.rb', line 20 def iach? pay_out_method == 'iACH' end |