Class: BankOfThailand::SearchSeries
- Defined in:
- lib/bank_of_thailand/resources/search_series.rb
Overview
Search Stat APIs resource
This resource allows users to search for data in BOT API Statistics by keyword search using series code, series name, or relevant terms. The result will be displayed up to 100 series per search.
Constant Summary collapse
- BASE_URL =
"https://gateway.api.bot.or.th/search-series"
Instance Attribute Summary
Attributes inherited from Resource
Instance Method Summary collapse
-
#search(keyword:) ⇒ Hash
Search for series by keyword.
Methods inherited from Resource
Constructor Details
This class inherits a constructor from BankOfThailand::Resource
Instance Method Details
#search(keyword:) ⇒ Hash
Note:
Returns up to 100 series per search
Search for series by keyword
26 27 28 29 |
# File 'lib/bank_of_thailand/resources/search_series.rb', line 26 def search(keyword:) params = { keyword: keyword } get_with_base_url("/", params) end |