Module: BlueConductor
- Defined in:
- lib/blue_conductor.rb,
lib/blue_conductor/song.rb,
lib/blue_conductor/version.rb,
lib/blue_conductor/producer.rb,
lib/blue_conductor/band_manager.rb,
lib/blue_conductor/http/request.rb,
lib/blue_conductor/http/song/response.rb,
lib/blue_conductor/http/song/sanitizer.rb,
lib/blue_conductor/http/record/response.rb,
lib/blue_conductor/http/record/sanitizer.rb,
lib/blue_conductor/http/song/url_generator.rb,
lib/blue_conductor/http/record/url_generator.rb
Defined Under Namespace
Modules: HTTP Classes: BandManager, Producer, Song
Constant Summary collapse
- VERSION =
"0.1.0"
Class Method Summary collapse
Class Method Details
.record_for(band, record_title) ⇒ Object
31 32 33 34 35 36 37 38 |
# File 'lib/blue_conductor.rb', line 31 def self.record_for(band, record_title) producer = BlueConductor::Producer.new(band, record_title) producer.url_generator = BlueConductor::HTTP::Record::UrlGenerator producer.request = BlueConductor::HTTP::Request producer.parser = BlueConductor::HTTP::Record::Response producer.record! end |
.song_for(band, song) ⇒ Object
22 23 24 25 26 27 28 29 |
# File 'lib/blue_conductor.rb', line 22 def self.song_for(band, song) manager = BlueConductor::BandManager.new(band, song) manager.url_generator = BlueConductor::HTTP::Song::UrlGenerator manager.request = BlueConductor::HTTP::Request manager.parser = BlueConductor::HTTP::Song::Response manager.song! end |