Class: Buda::FiatAccount

Inherits:
Object
  • Object
show all
Defined in:
lib/buda/resources/fiat_account.rb

Overview

for handling the total balance

Instance Attribute Summary collapse

Instance Method Summary collapse

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_numberObject (readonly)

Returns the value of attribute account_number.



6
7
8
# File 'lib/buda/resources/fiat_account.rb', line 6

def 
  @account_number
end

#account_typeObject (readonly)

Returns the value of attribute account_type.



6
7
8
# File 'lib/buda/resources/fiat_account.rb', line 6

def 
  @account_type
end

#created_atObject (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

#currencyObject (readonly)

Returns the value of attribute currency.



6
7
8
# File 'lib/buda/resources/fiat_account.rb', line 6

def currency
  @currency
end

#idObject (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

#inspectObject



30
31
32
# File 'lib/buda/resources/fiat_account.rb', line 30

def inspect
  "<FiatAccount #{@bank_name} (#{@account_number})>"
end

#to_sObject



26
27
28
# File 'lib/buda/resources/fiat_account.rb', line 26

def to_s
  "#{@bank_name} (#{@account_number})"
end