Class: Fintoc::V1::TransferAccount

Inherits:
Object
  • Object
show all
Defined in:
lib/fintoc/v1/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.



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

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

Instance Attribute Details

#holder_idObject (readonly)

Returns the value of attribute holder_id.



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

def holder_id
  @holder_id
end

#holder_nameObject (readonly)

Returns the value of attribute holder_name.



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

def holder_name
  @holder_name
end

#institutionObject (readonly)

Returns the value of attribute institution.



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

def institution
  @institution
end

#numberObject (readonly)

Returns the value of attribute number.



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

def number
  @number
end

Instance Method Details

#idObject



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

def id
  object_id
end

#to_sObject



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

def to_s
  @holder_id.to_s
end