Class: Delayed::Worker
- Inherits:
-
Object
- Object
- Delayed::Worker
- Defined in:
- lib/delayed/backend/worker.rb
Class Method Summary collapse
Class Method Details
.config ⇒ Object
13 14 15 |
# File 'lib/delayed/backend/worker.rb', line 13 def config @config ||= SqsConfig.new end |
.configure {|config| ... } ⇒ Object
4 5 6 7 8 9 10 11 |
# File 'lib/delayed/backend/worker.rb', line 4 def configure yield(config) @sqs = AWS::SQS.new( :access_key_id => config.aws_access_key_id, :secret_access_key => config.aws_secret_access_key, :region => config.region ).queues["https://sqs.#{config.region}.amazonaws.com/#{config.queue_path}"] end |
.sqs ⇒ Object
17 18 19 |
# File 'lib/delayed/backend/worker.rb', line 17 def sqs @sqs end |