Class: Pokepay::Response::Transfer

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

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#amountObject (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

#descriptionObject (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_atObject (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

#idObject (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_amountObject (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_amountObject (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_accountObject (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
end

#sender_accountObject (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
end

#transaction_idObject (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

#typeObject (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