Module: Buzzsprout

Defined in:
lib/buzzsprout.rb,
lib/buzzsprout/client.rb,
lib/buzzsprout/episode.rb,
lib/buzzsprout/version.rb

Defined Under Namespace

Classes: Client, Episode

Constant Summary collapse

VERSION =

The version of the gem

'0.0.6'.freeze

Class Method Summary collapse

Class Method Details

.episode(podcast_id, episode_id) ⇒ Episode

Retrieve episode details

Parameters:

  • podcast_id (Fixnum)

    The ID for the podcast

  • episode_id (Fixnum)

    The ID for the episode

Returns:

  • (Episode)

    A list of episodes matching the query



27
28
29
# File 'lib/buzzsprout.rb', line 27

def self.episode(podcast_id, episode_id)
  Client.episode(podcast_id, episode_id)
end

.episode_from_url(url) ⇒ Episode

Retrieve episode details

Parameters:

  • url (Fixnum)

    URL of the episode

Returns:

  • (Episode)

    A list of episodes matching the query



35
36
37
# File 'lib/buzzsprout.rb', line 35

def self.episode_from_url(url)
  Client.episode_from_url(url)
end

.episodes(podcast_id, tags = []) ⇒ Array<Episode>

List all the episodes for a podcast

Parameters:

  • podcast_id (Fixnum)

    The ID for the podcast

  • tags (Array<String>) (defaults to: [])

    An array of tags to filter episodes

Returns:

  • (Array<Episode>)

    A list of episodes matching the query



18
19
20
# File 'lib/buzzsprout.rb', line 18

def self.episodes(podcast_id, tags=[])
  Client.episodes(podcast_id, tags)
end