Module: Hulu

Defined in:
lib/hulu/show/base.rb

Defined Under Namespace

Modules: Fetcher Classes: Base, Episode, Show

Constant Summary collapse

BASE_URI =
'http://www.hulu.com'

Class Method Summary collapse

Class Method Details

.query(show_name) ⇒ Object



28
29
30
31
# File 'lib/hulu/show/base.rb', line 28

def self.query(show_name)
  show_name = Hulu::Base.prepare_name(show_name)
  Hulu::Fetcher::Page.get("#{BASE_URI}/#{show_name}")
end

.shows(titles) ⇒ Object



33
34
35
# File 'lib/hulu/show/base.rb', line 33

def self.shows(titles)
  titles.map { |title| Hulu::Show.new(title) }
end