Method: Pollster::ApiClient#build_request_url
- Defined in:
- lib/pollster/api_client.rb
#build_request_url(path) ⇒ Object
275 276 277 278 279 |
# File 'lib/pollster/api_client.rb', line 275 def build_request_url(path) # Add leading and trailing slashes to path path = "/#{path}".gsub(/\/+/, '/') URI.encode(@config.base_url + path) end |