Class: BlueConductor::HTTP::Record::UrlGenerator

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

Constant Summary collapse

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

Class Method Summary collapse

Class Method Details

.generate(producer) ⇒ Object



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

def self.generate(producer)
  sanitizer = BlueConductor::HTTP::Record::Sanitizer.new(producer)
  sanitizer.clean

  "#{BASE_URI}#{sanitizer.band}/#{sanitizer.title}/"
end