Sha256: 53f40a2780d3da04350443afb20153876751e901174b113fe52fd892073b922f
Contents?: true
Size: 1.13 KB
Versions: 1
Compression:
Stored size: 1.13 KB
Contents
require 'rubygems' require 'time' require 'activesupport' require 'hashie' require 'httparty' directory = File.expand_path(File.dirname(__FILE__)) Hash.send :include, Hashie::HashExtensions module Buzzsprout # List all the episodes for a podcast # # @param [Fixnum] podcast_id The ID for the podcast # @param [Array<String>] tags An array of tags to filter episodes # @return [Array<Episode>] A list of episodes matching the query def self.episodes(podcast_id, tags=[]) Client.episodes(podcast_id, tags) end # Retrieve episode details # # @param [Fixnum] podcast_id The ID for the podcast # @param [Fixnum] episode_id The ID for the episode # @return [Episode] A list of episodes matching the query def self.episode(podcast_id, episode_id) Client.episode(podcast_id, episode_id) end # Retrieve episode details # # @param [Fixnum] url URL of the episode # @return [Episode] A list of episodes matching the query def self.episode_from_url(url) Client.episode_from_url(url) end end require File.join(directory, 'buzzsprout', 'episode') require File.join(directory, 'buzzsprout', 'client')
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
buzzsprout-0.0.3 | lib/buzzsprout.rb |