Class: Pokepay::Response::Bank

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(row) ⇒ Bank

Returns a new instance of Bank.



7
8
9
10
11
12
13
14
15
16
17
# File 'lib/pokepay_partner_ruby_sdk/response/bank.rb', line 7

def initialize(row)
  @id = row["id"]
  @private_money = PrivateMoney.new(row["private_money"])
  @bank_name = row["bank_name"]
  @bank_code = row["bank_code"]
  @branch_number = row["branch_number"]
  @branch_name = row["branch_name"]
  @deposit_type = row["deposit_type"]
  @masked_account_number = row["masked_account_number"]
  @account_name = row["account_name"]
end

Instance Attribute Details

#account_nameObject (readonly)

Returns the value of attribute account_name.



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

def 
  @account_name
end

#bank_codeObject (readonly)

Returns the value of attribute bank_code.



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

def bank_code
  @bank_code
end

#bank_nameObject (readonly)

Returns the value of attribute bank_name.



20
21
22
# File 'lib/pokepay_partner_ruby_sdk/response/bank.rb', line 20

def bank_name
  @bank_name
end

#branch_nameObject (readonly)

Returns the value of attribute branch_name.



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

def branch_name
  @branch_name
end

#branch_numberObject (readonly)

Returns the value of attribute branch_number.



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

def branch_number
  @branch_number
end

#deposit_typeObject (readonly)

Returns the value of attribute deposit_type.



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

def deposit_type
  @deposit_type
end

#idObject (readonly)

Returns the value of attribute id.



18
19
20
# File 'lib/pokepay_partner_ruby_sdk/response/bank.rb', line 18

def id
  @id
end

#masked_account_numberObject (readonly)

Returns the value of attribute masked_account_number.



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

def 
  @masked_account_number
end

#private_moneyObject (readonly)

Returns the value of attribute private_money.



19
20
21
# File 'lib/pokepay_partner_ruby_sdk/response/bank.rb', line 19

def private_money
  @private_money
end