Module: BankApi

Defined in:
lib/bank_api.rb,
lib/bank_api/version.rb,
lib/bank_api/exceptions.rb,
lib/bank_api/configuration.rb

Defined Under Namespace

Modules: Balance, BancoSecurity, Clients, Configs, Deposit, SignDeposits, Transfer, Values, Withdrawal Classes: Configuration, MissingCredentialsError

Constant Summary collapse

VERSION =
"1.1.1"

Class Attribute Summary collapse

Class Method Summary collapse

Class Attribute Details

.configurationObject

Returns the value of attribute configuration.



9
10
11
# File 'lib/bank_api.rb', line 9

def configuration
  @configuration
end

Class Method Details

.configure {|configuration| ... } ⇒ Object

Yields:



20
21
22
# File 'lib/bank_api.rb', line 20

def self.configure
  yield(configuration)
end

.get_bdc_account_balance(options = {}) ⇒ Object



32
33
34
# File 'lib/bank_api.rb', line 32

def self.(options = {})
  Clients::BancoDeChileCompanyClient.new(configuration).(options)
end

.get_bdc_recent_company_deposits(options = {}) ⇒ Object



24
25
26
# File 'lib/bank_api.rb', line 24

def self.get_bdc_recent_company_deposits(options = {})
  Clients::BancoDeChileCompanyClient.new(configuration).get_recent_deposits(options)
end

.get_bdc_recent_company_withdrawalsObject



28
29
30
# File 'lib/bank_api.rb', line 28

def self.get_bdc_recent_company_withdrawals
  Clients::BancoDeChileCompanyClient.new(configuration).get_recent_withdrawals
end

.resetObject



16
17
18
# File 'lib/bank_api.rb', line 16

def self.reset
  @configuration = Configuration.new
end