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
-
.configuration ⇒ Object
Returns the value of attribute configuration.
Class Method Summary collapse
- .configure {|configuration| ... } ⇒ Object
- .get_bdc_account_balance(options = {}) ⇒ Object
- .get_bdc_recent_company_deposits(options = {}) ⇒ Object
- .get_bdc_recent_company_withdrawals ⇒ Object
- .reset ⇒ Object
Class Attribute Details
.configuration ⇒ Object
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
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.get_bdc_account_balance( = {}) Clients::BancoDeChileCompanyClient.new(configuration).get_account_balance() 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( = {}) Clients::BancoDeChileCompanyClient.new(configuration).get_recent_deposits() end |
.get_bdc_recent_company_withdrawals ⇒ Object
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 |
.reset ⇒ Object
16 17 18 |
# File 'lib/bank_api.rb', line 16 def self.reset @configuration = Configuration.new end |