Module: PodcastIndex::Api::Request
- Defined in:
- lib/podcast_index/api/request.rb
Instance Method Summary collapse
Instance Method Details
#get(path, params) ⇒ Object
8 9 10 11 12 |
# File 'lib/podcast_index/api/request.rb', line 8 def get(path, params) template = Addressable::Template.new("#{base_url}#{path}{?query*}") uri = template.(query: sanitized_params(params)) handle_response(response_to(uri)) end |