Class: Lambdakiq::Client

Inherits:
Object
  • Object
show all
Defined in:
lib/lambdakiq/client.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeClient

Returns a new instance of Client.



11
12
13
14
15
# File 'lib/lambdakiq/client.rb', line 11

def initialize
  @queues = Hash.new do |h, name|
    h[name] = Queue.new(name)
  end
end

Instance Attribute Details

#queuesObject (readonly)

Returns the value of attribute queues.



9
10
11
# File 'lib/lambdakiq/client.rb', line 9

def queues
  @queues
end

Instance Method Details

#sqsObject



17
18
19
20
21
22
# File 'lib/lambdakiq/client.rb', line 17

def sqs
  @sqs ||= begin
    require 'aws-sdk-sqs'
    Aws::SQS::Client.new(options)
  end
end