class Lambdakiq::Client
Attributes
queues[R]
Public Class Methods
new()
click to toggle source
# File lib/lambdakiq/client.rb, line 11 def initialize @queues = Hash.new do |h, name| h[name] = Queue.new(name) end end
Public Instance Methods
sqs()
click to toggle source
# File lib/lambdakiq/client.rb, line 17 def sqs @sqs ||= begin require 'aws-sdk-sqs' Aws::SQS::Client.new(options) end end
Private Instance Methods
options()
click to toggle source
# File lib/lambdakiq/client.rb, line 26 def options default_options.tap do |opts| opts[:region] ||= region if region end end
region()
click to toggle source
# File lib/lambdakiq/client.rb, line 32 def region ENV['AWS_REGION'] end