Class: BlueConductor::HTTP::Song::UrlGenerator

Inherits:
Object
  • Object
show all
Defined in:
lib/blue_conductor/http/song/url_generator.rb

Constant Summary collapse

BASE_URI =
"http://www.songlyrics.com/"

Class Method Summary collapse

Class Method Details

.generate(manager) ⇒ Object



7
8
9
10
11
12
# File 'lib/blue_conductor/http/song/url_generator.rb', line 7

def self.generate(manager)
  sanitizer = BlueConductor::HTTP::Song::Sanitizer.new(manager)
  sanitizer.clean

  "#{BASE_URI}#{sanitizer.band}/#{sanitizer.song}-lyrics/"
end