Class: Pokepay::Response::TransactionDetail
- Inherits:
-
Object
- Object
- Pokepay::Response::TransactionDetail
- Defined in:
- lib/pokepay_partner_ruby_sdk/response/transaction_detail.rb
Instance Attribute Summary collapse
-
#amount ⇒ Object
readonly
Returns the value of attribute amount.
-
#campaign_point_amount ⇒ Object
readonly
Returns the value of attribute campaign_point_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.
-
#money_amount ⇒ Object
readonly
Returns the value of attribute money_amount.
-
#point_amount ⇒ Object
readonly
Returns the value of attribute point_amount.
-
#raw_point_amount ⇒ Object
readonly
Returns the value of attribute raw_point_amount.
-
#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.
-
#transfers ⇒ Object
readonly
Returns the value of attribute transfers.
-
#type ⇒ Object
readonly
Returns the value of attribute type.
Instance Method Summary collapse
-
#initialize(row) ⇒ TransactionDetail
constructor
A new instance of TransactionDetail.
Constructor Details
#initialize(row) ⇒ TransactionDetail
Returns a new instance of TransactionDetail.
10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 |
# File 'lib/pokepay_partner_ruby_sdk/response/transaction_detail.rb', line 10 def initialize(row) @id = row["id"] @type = row["type"] @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"] @money_amount = row["money_amount"] @point_amount = row["point_amount"] @raw_point_amount = row["raw_point_amount"] @campaign_point_amount = row["campaign_point_amount"] @done_at = row["done_at"] @description = row["description"] @transfers = row["transfers"] end |
Instance Attribute Details
#amount ⇒ Object (readonly)
Returns the value of attribute amount.
34 35 36 |
# File 'lib/pokepay_partner_ruby_sdk/response/transaction_detail.rb', line 34 def amount @amount end |
#campaign_point_amount ⇒ Object (readonly)
Returns the value of attribute campaign_point_amount.
38 39 40 |
# File 'lib/pokepay_partner_ruby_sdk/response/transaction_detail.rb', line 38 def campaign_point_amount @campaign_point_amount end |
#description ⇒ Object (readonly)
Returns the value of attribute description.
40 41 42 |
# File 'lib/pokepay_partner_ruby_sdk/response/transaction_detail.rb', line 40 def description @description end |
#done_at ⇒ Object (readonly)
Returns the value of attribute done_at.
39 40 41 |
# File 'lib/pokepay_partner_ruby_sdk/response/transaction_detail.rb', line 39 def done_at @done_at end |
#id ⇒ Object (readonly)
Returns the value of attribute id.
27 28 29 |
# File 'lib/pokepay_partner_ruby_sdk/response/transaction_detail.rb', line 27 def id @id end |
#is_modified ⇒ Object (readonly)
Returns the value of attribute is_modified.
29 30 31 |
# File 'lib/pokepay_partner_ruby_sdk/response/transaction_detail.rb', line 29 def is_modified @is_modified end |
#money_amount ⇒ Object (readonly)
Returns the value of attribute money_amount.
35 36 37 |
# File 'lib/pokepay_partner_ruby_sdk/response/transaction_detail.rb', line 35 def money_amount @money_amount end |
#point_amount ⇒ Object (readonly)
Returns the value of attribute point_amount.
36 37 38 |
# File 'lib/pokepay_partner_ruby_sdk/response/transaction_detail.rb', line 36 def point_amount @point_amount end |
#raw_point_amount ⇒ Object (readonly)
Returns the value of attribute raw_point_amount.
37 38 39 |
# File 'lib/pokepay_partner_ruby_sdk/response/transaction_detail.rb', line 37 def raw_point_amount @raw_point_amount end |
#receiver ⇒ Object (readonly)
Returns the value of attribute receiver.
32 33 34 |
# File 'lib/pokepay_partner_ruby_sdk/response/transaction_detail.rb', line 32 def receiver @receiver end |
#receiver_account ⇒ Object (readonly)
Returns the value of attribute receiver_account.
33 34 35 |
# File 'lib/pokepay_partner_ruby_sdk/response/transaction_detail.rb', line 33 def receiver_account @receiver_account end |
#sender ⇒ Object (readonly)
Returns the value of attribute sender.
30 31 32 |
# File 'lib/pokepay_partner_ruby_sdk/response/transaction_detail.rb', line 30 def sender @sender end |
#sender_account ⇒ Object (readonly)
Returns the value of attribute sender_account.
31 32 33 |
# File 'lib/pokepay_partner_ruby_sdk/response/transaction_detail.rb', line 31 def sender_account @sender_account end |
#transfers ⇒ Object (readonly)
Returns the value of attribute transfers.
41 42 43 |
# File 'lib/pokepay_partner_ruby_sdk/response/transaction_detail.rb', line 41 def transfers @transfers end |
#type ⇒ Object (readonly)
Returns the value of attribute type.
28 29 30 |
# File 'lib/pokepay_partner_ruby_sdk/response/transaction_detail.rb', line 28 def type @type end |