Class: Fintoc::TransferAccount
- Inherits:
-
Object
- Object
- Fintoc::TransferAccount
- Defined in:
- lib/fintoc/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.
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_id ⇒ Object (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_name ⇒ Object (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 |
#institution ⇒ Object (readonly)
Returns the value of attribute institution.
5 6 7 |
# File 'lib/fintoc/resources/transfer_account.rb', line 5 def institution @institution end |
#number ⇒ Object (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
#id ⇒ Object
14 15 16 |
# File 'lib/fintoc/resources/transfer_account.rb', line 14 def id object_id end |
#to_s ⇒ Object
18 19 20 |
# File 'lib/fintoc/resources/transfer_account.rb', line 18 def to_s @holder_id.to_s end |