Class: InvestecOpenApi::Models::Transfer
- Inherits:
-
Object
- Object
- InvestecOpenApi::Models::Transfer
- Defined in:
- lib/investec_open_api/models/transfer.rb
Instance Attribute Summary collapse
-
#amount ⇒ Object
readonly
Returns the value of attribute amount.
-
#beneficiary_account_id ⇒ Object
readonly
Returns the value of attribute beneficiary_account_id.
-
#my_reference ⇒ Object
readonly
Returns the value of attribute my_reference.
-
#their_reference ⇒ Object
readonly
Returns the value of attribute their_reference.
Instance Method Summary collapse
-
#initialize(beneficiary_account_id, amount, my_reference, their_reference) ⇒ Transfer
constructor
A new instance of Transfer.
- #to_h ⇒ Object
Constructor Details
#initialize(beneficiary_account_id, amount, my_reference, their_reference) ⇒ Transfer
Returns a new instance of Transfer.
11 12 13 14 15 16 17 18 19 20 21 |
# File 'lib/investec_open_api/models/transfer.rb', line 11 def initialize( beneficiary_account_id, amount, my_reference, their_reference ) @beneficiary_account_id = beneficiary_account_id @amount = amount.to_s @my_reference = my_reference @their_reference = their_reference end |
Instance Attribute Details
#amount ⇒ Object (readonly)
Returns the value of attribute amount.
5 6 7 |
# File 'lib/investec_open_api/models/transfer.rb', line 5 def amount @amount end |
#beneficiary_account_id ⇒ Object (readonly)
Returns the value of attribute beneficiary_account_id.
5 6 7 |
# File 'lib/investec_open_api/models/transfer.rb', line 5 def beneficiary_account_id @beneficiary_account_id end |
#my_reference ⇒ Object (readonly)
Returns the value of attribute my_reference.
5 6 7 |
# File 'lib/investec_open_api/models/transfer.rb', line 5 def my_reference @my_reference end |
#their_reference ⇒ Object (readonly)
Returns the value of attribute their_reference.
5 6 7 |
# File 'lib/investec_open_api/models/transfer.rb', line 5 def their_reference @their_reference end |
Instance Method Details
#to_h ⇒ Object
23 24 25 26 27 28 29 30 |
# File 'lib/investec_open_api/models/transfer.rb', line 23 def to_h { beneficiaryAccountId: @beneficiary_account_id, amount: @amount, myReference: @my_reference, theirReference: @their_reference } end |