lib/buzzsprout.rb in buzzsprout-0.0.2 vs lib/buzzsprout.rb in buzzsprout-0.0.3

- old
+ new

@@ -1,14 +1,11 @@ require 'rubygems' require 'time' -gem 'activesupport', '~> 2.3.2' + require 'activesupport' -gem 'hashie', '>= 0.1.3' require 'hashie' - -gem 'httparty', '>= 0.5.0' require 'httparty' directory = File.expand_path(File.dirname(__FILE__)) @@ -31,9 +28,17 @@ # @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') \ No newline at end of file