module Simplecast::Client::Episode
Public Class Methods
all(podcast_id = nil)
click to toggle source
# File lib/simplecast/client/episode.rb, line 15 def all(podcast_id = nil) podcast_id ||= client.podcast_id api_obj_array = client.get("podcasts/#{podcast_id}/episodes.json") api_obj_array.map {|api_obj| model.new(api_obj) } end
embed(id, podcast_id = nil)
click to toggle source
# File lib/simplecast/client/episode.rb, line 11 def embed(id, podcast_id = nil) podcast_id ||= client.podcast_id api_obj = client.get("podcasts/#{podcast_id}/episodes/#{id}/embed.json") end
find(id, podcast_id = nil)
click to toggle source
# File lib/simplecast/client/episode.rb, line 6 def find(id, podcast_id = nil) podcast_id ||= client.podcast_id api_obj = client.get("podcasts/#{podcast_id}/episodes/#{id}.json") model.new(api_obj) end