Class: BankOfThailand::DepositRate
- Defined in:
- lib/bank_of_thailand/resources/deposit_rate.rb
Overview
Deposit Interest Rates resource
This resource provides access to deposit interest rates for individuals from commercial banks in Thailand.
Constant Summary collapse
- BASE_URL =
"https://gateway.api.bot.or.th/DepositRate/v2"
Instance Attribute Summary
Attributes inherited from Resource
Instance Method Summary collapse
-
#average_rates(start_period:, end_period:) ⇒ Hash
Get min-max deposit interest rates for individuals of commercial banks.
-
#rates(start_period:, end_period:) ⇒ Hash
Get deposit interest rates for individuals of commercial banks.
Methods inherited from Resource
Constructor Details
This class inherits a constructor from BankOfThailand::Resource
Instance Method Details
#average_rates(start_period:, end_period:) ⇒ Hash
Get min-max deposit interest rates for individuals of commercial banks
35 36 37 38 |
# File 'lib/bank_of_thailand/resources/deposit_rate.rb', line 35 def average_rates(start_period:, end_period:) params = { start_period: start_period, end_period: end_period } get_with_base_url("/avg_deposit_rate/", params) end |
#rates(start_period:, end_period:) ⇒ Hash
Get deposit interest rates for individuals of commercial banks
24 25 26 27 |
# File 'lib/bank_of_thailand/resources/deposit_rate.rb', line 24 def rates(start_period:, end_period:) params = { start_period: start_period, end_period: end_period } get_with_base_url("/deposit_rate/", params) end |