Class: Pokepay::Response::ExternalTransactionDetail
- Inherits:
-
Object
- Object
- Pokepay::Response::ExternalTransactionDetail
- Defined in:
- lib/pokepay_partner_ruby_sdk/response/external_transaction_detail.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.
-
#is_modified ⇒ Object
readonly
Returns the value of attribute is_modified.
-
#receiver ⇒ Object
readonly
Returns the value of attribute receiver.
-
#receiver_account ⇒ Object
readonly
Returns the value of attribute receiver_account.
-
#sender ⇒ Object
readonly
Returns the value of attribute sender.
-
#sender_account ⇒ Object
readonly
Returns the value of attribute sender_account.
-
#transaction ⇒ Object
readonly
Returns the value of attribute transaction.
Instance Method Summary collapse
-
#initialize(row) ⇒ ExternalTransactionDetail
constructor
A new instance of ExternalTransactionDetail.
Constructor Details
#initialize(row) ⇒ ExternalTransactionDetail
Returns a new instance of ExternalTransactionDetail.
11 12 13 14 15 16 17 18 19 20 21 22 |
# File 'lib/pokepay_partner_ruby_sdk/response/external_transaction_detail.rb', line 11 def initialize(row) @id = row["id"] @is_modified = row["is_modified"] @sender = User.new(row["sender"]) @sender_account = Account.new(row["sender_account"]) @receiver = User.new(row["receiver"]) @receiver_account = Account.new(row["receiver_account"]) @amount = row["amount"] @done_at = row["done_at"] @description = row["description"] @transaction = row["transaction"] and TransactionDetail.new(row["transaction"]) end |
Instance Attribute Details
#amount ⇒ Object (readonly)
Returns the value of attribute amount.
29 30 31 |
# File 'lib/pokepay_partner_ruby_sdk/response/external_transaction_detail.rb', line 29 def amount @amount end |
#description ⇒ Object (readonly)
Returns the value of attribute description.
31 32 33 |
# File 'lib/pokepay_partner_ruby_sdk/response/external_transaction_detail.rb', line 31 def description @description end |
#done_at ⇒ Object (readonly)
Returns the value of attribute done_at.
30 31 32 |
# File 'lib/pokepay_partner_ruby_sdk/response/external_transaction_detail.rb', line 30 def done_at @done_at end |
#id ⇒ Object (readonly)
Returns the value of attribute id.
23 24 25 |
# File 'lib/pokepay_partner_ruby_sdk/response/external_transaction_detail.rb', line 23 def id @id end |
#is_modified ⇒ Object (readonly)
Returns the value of attribute is_modified.
24 25 26 |
# File 'lib/pokepay_partner_ruby_sdk/response/external_transaction_detail.rb', line 24 def is_modified @is_modified end |
#receiver ⇒ Object (readonly)
Returns the value of attribute receiver.
27 28 29 |
# File 'lib/pokepay_partner_ruby_sdk/response/external_transaction_detail.rb', line 27 def receiver @receiver end |
#receiver_account ⇒ Object (readonly)
Returns the value of attribute receiver_account.
28 29 30 |
# File 'lib/pokepay_partner_ruby_sdk/response/external_transaction_detail.rb', line 28 def receiver_account @receiver_account end |
#sender ⇒ Object (readonly)
Returns the value of attribute sender.
25 26 27 |
# File 'lib/pokepay_partner_ruby_sdk/response/external_transaction_detail.rb', line 25 def sender @sender end |
#sender_account ⇒ Object (readonly)
Returns the value of attribute sender_account.
26 27 28 |
# File 'lib/pokepay_partner_ruby_sdk/response/external_transaction_detail.rb', line 26 def sender_account @sender_account end |
#transaction ⇒ Object (readonly)
Returns the value of attribute transaction.
32 33 34 |
# File 'lib/pokepay_partner_ruby_sdk/response/external_transaction_detail.rb', line 32 def transaction @transaction end |