Sha256: 5933a21384a4acbefa0d8c6b9e3072419c45dd20ec01859187df7213df77c84a

Contents?: true

Size: 618 Bytes

Versions: 2

Compression:

Stored size: 618 Bytes

Contents

require 'fake_sqs/version'
require 'fake_sqs/server'
require 'fake_sqs/queues'
require 'fake_sqs/responder'
require 'fake_sqs/queue'
require 'fake_sqs/queue_factory'
require 'fake_sqs/message'

module FakeSQS

  def self.server(options = {})
    Server.new(options.merge(queues: queues, responder: responder))
  end

  def self.queues
    Queues.new(queue_factory: queue_factory)
  end

  def self.responder
    Responder.new
  end

  def self.queue_factory
    QueueFactory.new(message_factory: message_factory, queue: queue)
  end

  def self.message_factory
    Message
  end

  def self.queue
    Queue
  end

end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
fake_sqs-0.0.3 lib/fake_sqs.rb
fake_sqs-0.0.2 lib/fake_sqs.rb