Class: BankOfThailand::InterbankRate
- Defined in:
- lib/bank_of_thailand/resources/interbank_rate.rb
Overview
Interbank Transaction Rates resource
This resource provides access to interbank transaction rates from commercial banks and financial institutions in Thailand.
Constant Summary collapse
- BASE_URL =
"https://gateway.api.bot.or.th/Stat-InterbankTransactionRate/v2/INTRBNK_TXN_RATE"
Instance Attribute Summary
Attributes inherited from Resource
Instance Method Summary collapse
-
#rates(start_period:, end_period:, term_type: nil) ⇒ Hash
Get interbank transaction rates.
Methods inherited from Resource
Constructor Details
This class inherits a constructor from BankOfThailand::Resource
Instance Method Details
#rates(start_period:, end_period:, term_type: nil) ⇒ Hash
Get interbank transaction rates
26 27 28 29 30 31 |
# File 'lib/bank_of_thailand/resources/interbank_rate.rb', line 26 def rates(start_period:, end_period:, term_type: nil) params = { start_period: start_period, end_period: end_period } params[:term_type] = term_type if term_type get_with_base_url("/", params) end |