Method: FakeSQS::Queue#initialize
- Defined in:
- lib/fake_sqs/queue.rb
#initialize(options = {}) ⇒ Queue
Returns a new instance of Queue.
18 19 20 21 22 23 24 25 26 |
# File 'lib/fake_sqs/queue.rb', line 18 def initialize( = {}) = .fetch(:message_factory) @name = .fetch("QueueName") @arn = .fetch("Arn") { "arn:aws:sqs:us-east-1:#{SecureRandom.hex}:#{@name}" } @queue_attributes = .fetch("Attributes") { {} } @lock = Monitor.new reset end |