Class: Buda::FiatAccount
- Inherits:
-
Object
- Object
- Buda::FiatAccount
- Defined in:
- lib/buda/resources/fiat_account.rb
Overview
for handling the total balance
Instance Attribute Summary collapse
-
#account_number ⇒ Object
readonly
Returns the value of attribute account_number.
-
#account_type ⇒ Object
readonly
Returns the value of attribute account_type.
-
#created_at ⇒ Object
readonly
Returns the value of attribute created_at.
-
#currency ⇒ Object
readonly
Returns the value of attribute currency.
-
#id ⇒ Object
readonly
Returns the value of attribute id.
Instance Method Summary collapse
-
#initialize(**kwargs) ⇒ FiatAccount
constructor
A new instance of FiatAccount.
- #inspect ⇒ Object
- #to_s ⇒ Object
Constructor Details
#initialize(**kwargs) ⇒ FiatAccount
Returns a new instance of FiatAccount.
9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 |
# File 'lib/buda/resources/fiat_account.rb', line 9 def initialize(**kwargs) @id = kwargs[:id] @account_number = kwargs[:account_number] @created_at = kwargs[:created_at] @account_type = kwargs[:account_type] @bank_id = kwargs[:bank_id] @currency = kwargs[:currency] @document_number = kwargs[:document_number] @email = kwargs[:email] @phone = kwargs[:phone] @national_number_identifier = kwargs[:national_number_identifier] @bank_name = kwargs[:bank_name] @updated_at = kwargs[:updated_at] @inter_bank_number = kwargs[:inter_bank_number] @source_account = kwargs[:source_account] end |
Instance Attribute Details
#account_number ⇒ Object (readonly)
Returns the value of attribute account_number.
6 7 8 |
# File 'lib/buda/resources/fiat_account.rb', line 6 def account_number @account_number end |
#account_type ⇒ Object (readonly)
Returns the value of attribute account_type.
6 7 8 |
# File 'lib/buda/resources/fiat_account.rb', line 6 def account_type @account_type end |
#created_at ⇒ Object (readonly)
Returns the value of attribute created_at.
6 7 8 |
# File 'lib/buda/resources/fiat_account.rb', line 6 def created_at @created_at end |
#currency ⇒ Object (readonly)
Returns the value of attribute currency.
6 7 8 |
# File 'lib/buda/resources/fiat_account.rb', line 6 def currency @currency end |
#id ⇒ Object (readonly)
Returns the value of attribute id.
6 7 8 |
# File 'lib/buda/resources/fiat_account.rb', line 6 def id @id end |
Instance Method Details
#inspect ⇒ Object
30 31 32 |
# File 'lib/buda/resources/fiat_account.rb', line 30 def inspect "<FiatAccount #{@bank_name} (#{@account_number})>" end |
#to_s ⇒ Object
26 27 28 |
# File 'lib/buda/resources/fiat_account.rb', line 26 def to_s "#{@bank_name} (#{@account_number})" end |