Class: PodcastIndex::Api::Recent

Inherits:
Object
  • Object
show all
Extended by:
Request
Defined in:
lib/podcast_index/api/recent.rb

Class Method Summary collapse

Methods included from Request

get

Class Method Details

.data(max: nil, since: nil) ⇒ Object



23
24
25
26
# File 'lib/podcast_index/api/recent.rb', line 23

def data(max: nil, since: nil)
  response = get("/recent/data", max: max, since: since)
  JSON.parse(response.body)
end

.episodes(max: nil, exclude_string: nil, before: nil, fulltext: nil) ⇒ Object



7
8
9
10
11
# File 'lib/podcast_index/api/recent.rb', line 7

def episodes(max: nil, exclude_string: nil, before: nil, fulltext: nil)
  response = get("/recent/episodes", max: max, exclude_string: exclude_string, before: before,
                                     fulltext: fulltext)
  JSON.parse(response.body)
end

.feeds(max: nil, since: nil, lang: nil, cat: nil, notcat: nil) ⇒ Object



13
14
15
16
# File 'lib/podcast_index/api/recent.rb', line 13

def feeds(max: nil, since: nil, lang: nil, cat: nil, notcat: nil)
  response = get("/recent/feeds", max: max, since: since, lang: lang, cat: cat, notcat: notcat)
  JSON.parse(response.body)
end

.new_feeds(max: nil, since: nil, feedid: nil, desc: nil) ⇒ Object



18
19
20
21
# File 'lib/podcast_index/api/recent.rb', line 18

def new_feeds(max: nil, since: nil, feedid: nil, desc: nil)
  response = get("/recent/newfeeds", max: max, since: since, feedid: feedid, desc: desc)
  JSON.parse(response.body)
end

.soundbites(max: nil) ⇒ Object



28
29
30
31
# File 'lib/podcast_index/api/recent.rb', line 28

def soundbites(max: nil)
  response = get("/recent/soundbites", max: max)
  JSON.parse(response.body)
end