Class: Fintoc::TransferAccount

Inherits:
Object
  • Object
show all
Defined in:
lib/fintoc/resources/transfer_account.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(holder_id:, holder_name:, number:, institution:) ⇒ TransferAccount

Returns a new instance of TransferAccount.



7
8
9
10
11
12
# File 'lib/fintoc/resources/transfer_account.rb', line 7

def initialize(holder_id:, holder_name:, number:, institution:, **)
  @holder_id = holder_id
  @holder_name = holder_name
  @number = number
  @institution = institution && Fintoc::Institution.new(**institution)
end

Instance Attribute Details

#holder_idObject (readonly)

Returns the value of attribute holder_id.



5
6
7
# File 'lib/fintoc/resources/transfer_account.rb', line 5

def holder_id
  @holder_id
end

#holder_nameObject (readonly)

Returns the value of attribute holder_name.



5
6
7
# File 'lib/fintoc/resources/transfer_account.rb', line 5

def holder_name
  @holder_name
end

#institutionObject (readonly)

Returns the value of attribute institution.



5
6
7
# File 'lib/fintoc/resources/transfer_account.rb', line 5

def institution
  @institution
end

#numberObject (readonly)

Returns the value of attribute number.



5
6
7
# File 'lib/fintoc/resources/transfer_account.rb', line 5

def number
  @number
end

Instance Method Details

#idObject



14
15
16
# File 'lib/fintoc/resources/transfer_account.rb', line 14

def id
  object_id
end

#to_sObject



18
19
20
# File 'lib/fintoc/resources/transfer_account.rb', line 18

def to_s
  @holder_id.to_s
end