Class: Fintoc::V1::TransferAccount
- Inherits:
-
Object
- Object
- Fintoc::V1::TransferAccount
- Defined in:
- lib/fintoc/v1/resources/transfer_account.rb
Instance Attribute Summary collapse
-
#holder_id ⇒ Object
readonly
Returns the value of attribute holder_id.
-
#holder_name ⇒ Object
readonly
Returns the value of attribute holder_name.
-
#institution ⇒ Object
readonly
Returns the value of attribute institution.
-
#number ⇒ Object
readonly
Returns the value of attribute number.
Instance Method Summary collapse
- #id ⇒ Object
-
#initialize(holder_id:, holder_name:, number:, institution:) ⇒ TransferAccount
constructor
A new instance of TransferAccount.
- #to_s ⇒ Object
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_id ⇒ Object (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_name ⇒ Object (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 |
#institution ⇒ Object (readonly)
Returns the value of attribute institution.
6 7 8 |
# File 'lib/fintoc/v1/resources/transfer_account.rb', line 6 def institution @institution end |
#number ⇒ Object (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
#id ⇒ Object
15 16 17 |
# File 'lib/fintoc/v1/resources/transfer_account.rb', line 15 def id object_id end |
#to_s ⇒ Object
19 20 21 |
# File 'lib/fintoc/v1/resources/transfer_account.rb', line 19 def to_s @holder_id.to_s end |