Class: Hulu::Base

Inherits:
Object
  • Object
show all
Defined in:
lib/hulu/show/base.rb

Direct Known Subclasses

Episode, Show

Class Method Summary collapse

Class Method Details

.prepare_name(name) ⇒ Object



23
24
25
# File 'lib/hulu/show/base.rb', line 23

def self.prepare_name(name)
  name.downcase.gsub("\s", '-').gsub('&', 'and').gsub(':', '')
end