Module: PodcastIndex::Api::Request

Included in:
Categories, Episodes, Podcasts, Recent, Search, Stats, Value
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.expand(query: sanitized_params(params))
  handle_response(response_to(uri))
end