Method: YNAB::ApiClient#build_request_url
- Defined in:
- lib/ynab/api_client.rb
#build_request_url(path, opts = {}) ⇒ Object
295 296 297 298 299 |
# File 'lib/ynab/api_client.rb', line 295 def build_request_url(path, opts = {}) # Add leading and trailing slashes to path path = "/#{path}".gsub(/\/+/, '/') @config.base_url(opts[:operation]) + path end |