Class: Pokepay::Response::Transfer
- Inherits:
-
Object
- Object
- Pokepay::Response::Transfer
- Defined in:
- lib/pokepay_partner_ruby_sdk/response/transfer.rb
Instance Attribute Summary collapse
-
#amount ⇒ Object
readonly
Returns the value of attribute amount.
-
#description ⇒ Object
readonly
Returns the value of attribute description.
-
#done_at ⇒ Object
readonly
Returns the value of attribute done_at.
-
#id ⇒ Object
readonly
Returns the value of attribute id.
-
#money_amount ⇒ Object
readonly
Returns the value of attribute money_amount.
-
#point_amount ⇒ Object
readonly
Returns the value of attribute point_amount.
-
#receiver_account ⇒ Object
readonly
Returns the value of attribute receiver_account.
-
#sender_account ⇒ Object
readonly
Returns the value of attribute sender_account.
-
#transaction_id ⇒ Object
readonly
Returns the value of attribute transaction_id.
-
#type ⇒ Object
readonly
Returns the value of attribute type.
Instance Method Summary collapse
-
#initialize(row) ⇒ Transfer
constructor
A new instance of Transfer.
Constructor Details
#initialize(row) ⇒ Transfer
Returns a new instance of Transfer.
8 9 10 11 12 13 14 15 16 17 18 19 |
# File 'lib/pokepay_partner_ruby_sdk/response/transfer.rb', line 8 def initialize(row) @id = row["id"] @sender_account = AccountWithoutPrivateMoneyDetail.new(row["sender_account"]) @receiver_account = AccountWithoutPrivateMoneyDetail.new(row["receiver_account"]) @amount = row["amount"] @money_amount = row["money_amount"] @point_amount = row["point_amount"] @done_at = row["done_at"] @type = row["type"] @description = row["description"] @transaction_id = row["transaction_id"] end |
Instance Attribute Details
#amount ⇒ Object (readonly)
Returns the value of attribute amount.
23 24 25 |
# File 'lib/pokepay_partner_ruby_sdk/response/transfer.rb', line 23 def amount @amount end |
#description ⇒ Object (readonly)
Returns the value of attribute description.
28 29 30 |
# File 'lib/pokepay_partner_ruby_sdk/response/transfer.rb', line 28 def description @description end |
#done_at ⇒ Object (readonly)
Returns the value of attribute done_at.
26 27 28 |
# File 'lib/pokepay_partner_ruby_sdk/response/transfer.rb', line 26 def done_at @done_at end |
#id ⇒ Object (readonly)
Returns the value of attribute id.
20 21 22 |
# File 'lib/pokepay_partner_ruby_sdk/response/transfer.rb', line 20 def id @id end |
#money_amount ⇒ Object (readonly)
Returns the value of attribute money_amount.
24 25 26 |
# File 'lib/pokepay_partner_ruby_sdk/response/transfer.rb', line 24 def money_amount @money_amount end |
#point_amount ⇒ Object (readonly)
Returns the value of attribute point_amount.
25 26 27 |
# File 'lib/pokepay_partner_ruby_sdk/response/transfer.rb', line 25 def point_amount @point_amount end |
#receiver_account ⇒ Object (readonly)
Returns the value of attribute receiver_account.
22 23 24 |
# File 'lib/pokepay_partner_ruby_sdk/response/transfer.rb', line 22 def receiver_account @receiver_account end |
#sender_account ⇒ Object (readonly)
Returns the value of attribute sender_account.
21 22 23 |
# File 'lib/pokepay_partner_ruby_sdk/response/transfer.rb', line 21 def sender_account @sender_account end |
#transaction_id ⇒ Object (readonly)
Returns the value of attribute transaction_id.
29 30 31 |
# File 'lib/pokepay_partner_ruby_sdk/response/transfer.rb', line 29 def transaction_id @transaction_id end |
#type ⇒ Object (readonly)
Returns the value of attribute type.
27 28 29 |
# File 'lib/pokepay_partner_ruby_sdk/response/transfer.rb', line 27 def type @type end |