Sha256: b33186fb9c3fb8423f8fc40dfd8464853514fe5f675c7c558bd990a276f23bf4

Contents?: true

Size: 838 Bytes

Versions: 6

Compression:

Stored size: 838 Bytes

Contents

require 'fake_sqs/api'
require 'fake_sqs/catch_errors'
require 'fake_sqs/error_response'
require 'fake_sqs/message'
require 'fake_sqs/queue'
require 'fake_sqs/queue_factory'
require 'fake_sqs/queues'
require 'fake_sqs/responder'
require 'fake_sqs/server'
require 'fake_sqs/version'
require 'fake_sqs/web_interface'

module FakeSQS

  def self.server(options = {})
    Server.new(options)
  end

  def self.api(options = {})
    API.new(
      server: options.fetch(:server),
      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

6 entries across 6 versions & 1 rubygems

Version Path
fake_sqs-0.0.9 lib/fake_sqs.rb
fake_sqs-0.0.8 lib/fake_sqs.rb
fake_sqs-0.0.7 lib/fake_sqs.rb
fake_sqs-0.0.6 lib/fake_sqs.rb
fake_sqs-0.0.5 lib/fake_sqs.rb
fake_sqs-0.0.4 lib/fake_sqs.rb