Module: SQS::Queue

Defined in:
lib/sqs/queue.rb

Overview

Call SQS::Queue to retrieve a RightAws::SqsGen2 queue instance

Class Method Summary collapse

Class Method Details

.[](queue_name) ⇒ Object



6
7
8
9
# File 'lib/sqs/queue.rb', line 6

def self.[] queue_name
  @sqs ||= RightAws::SqsGen2.new(SQS::Config.access_key, SQS::Config.secret_access_key, :logger => self.logger)
  @sqs.queue(queue_name, true)
end

.loggerObject



11
12
13
14
15
# File 'lib/sqs/queue.rb', line 11

def self.logger
  logger = Logger.new(STDOUT)
  logger.level = Logger::FATAL
  return logger
end