Class: PodcastIndex::Api::Recent
- Inherits:
-
Object
- Object
- PodcastIndex::Api::Recent
- Extended by:
- Request
- Defined in:
- lib/podcast_index/api/recent.rb
Class Method Summary collapse
- .data(max: nil, since: nil) ⇒ Object
- .episodes(max: nil, exclude_string: nil, before: nil, fulltext: nil) ⇒ Object
- .feeds(max: nil, since: nil, lang: nil, cat: nil, notcat: nil) ⇒ Object
- .new_feeds(max: nil, since: nil, feedid: nil, desc: nil) ⇒ Object
- .soundbites(max: nil) ⇒ Object
Methods included from Request
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 |