Class: Pokepay::Response::ExternalTransaction

Inherits:
Object
  • Object
show all
Defined in:
lib/pokepay_partner_ruby_sdk/response/external_transaction.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(row) ⇒ ExternalTransaction

Returns a new instance of ExternalTransaction.



10
11
12
13
14
15
16
17
18
19
20
# File 'lib/pokepay_partner_ruby_sdk/response/external_transaction.rb', line 10

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"]
end

Instance Attribute Details

#amountObject (readonly)

Returns the value of attribute amount.



27
28
29
# File 'lib/pokepay_partner_ruby_sdk/response/external_transaction.rb', line 27

def amount
  @amount
end

#descriptionObject (readonly)

Returns the value of attribute description.



29
30
31
# File 'lib/pokepay_partner_ruby_sdk/response/external_transaction.rb', line 29

def description
  @description
end

#done_atObject (readonly)

Returns the value of attribute done_at.



28
29
30
# File 'lib/pokepay_partner_ruby_sdk/response/external_transaction.rb', line 28

def done_at
  @done_at
end

#idObject (readonly)

Returns the value of attribute id.



21
22
23
# File 'lib/pokepay_partner_ruby_sdk/response/external_transaction.rb', line 21

def id
  @id
end

#is_modifiedObject (readonly)

Returns the value of attribute is_modified.



22
23
24
# File 'lib/pokepay_partner_ruby_sdk/response/external_transaction.rb', line 22

def is_modified
  @is_modified
end

#receiverObject (readonly)

Returns the value of attribute receiver.



25
26
27
# File 'lib/pokepay_partner_ruby_sdk/response/external_transaction.rb', line 25

def receiver
  @receiver
end

#receiver_accountObject (readonly)

Returns the value of attribute receiver_account.



26
27
28
# File 'lib/pokepay_partner_ruby_sdk/response/external_transaction.rb', line 26

def 
  @receiver_account
end

#senderObject (readonly)

Returns the value of attribute sender.



23
24
25
# File 'lib/pokepay_partner_ruby_sdk/response/external_transaction.rb', line 23

def sender
  @sender
end

#sender_accountObject (readonly)

Returns the value of attribute sender_account.



24
25
26
# File 'lib/pokepay_partner_ruby_sdk/response/external_transaction.rb', line 24

def 
  @sender_account
end