Module: SongkickQueue
- Defined in:
- lib/songkick_queue.rb,
lib/songkick_queue/cli.rb,
lib/songkick_queue/client.rb,
lib/songkick_queue/worker.rb,
lib/songkick_queue/version.rb,
lib/songkick_queue/consumer.rb,
lib/songkick_queue/producer.rb
Defined Under Namespace
Modules: Consumer Classes: CLI, Client, Configuration, Producer, Worker
Constant Summary collapse
- ConfigurationError =
Class.new(StandardError)
- VERSION =
"0.3.0"
Class Method Summary collapse
-
.configuration ⇒ Configuration
Retrieve configuration for SongkickQueue.
-
.configure {|Configuration| ... } ⇒ Object
Yields a block, passing the memoized configuration instance.
-
.publish(queue_name, message, options = {}) ⇒ Object
Publishes the given message to the given queue.
Class Method Details
.configuration ⇒ Configuration
Retrieve configuration for SongkickQueue
19 20 21 |
# File 'lib/songkick_queue.rb', line 19 def self.configuration @configuration ||= Configuration.new end |
.configure {|Configuration| ... } ⇒ Object
Yields a block, passing the memoized configuration instance
26 27 28 |
# File 'lib/songkick_queue.rb', line 26 def self.configure yield(configuration) end |
.publish(queue_name, message, options = {}) ⇒ Object
Publishes the given message to the given queue
33 34 35 |
# File 'lib/songkick_queue.rb', line 33 def self.publish(queue_name, , = {}) producer.publish(queue_name, , = {}) end |