Class: Propono::Queue

Inherits:
Object
  • Object
show all
Includes:
Sqs
Defined in:
lib/propono/components/queue.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(url) ⇒ Queue

Returns a new instance of Queue.



7
8
9
# File 'lib/propono/components/queue.rb', line 7

def initialize(url)
  @url = url
end

Instance Attribute Details

#urlObject (readonly)

Returns the value of attribute url.



6
7
8
# File 'lib/propono/components/queue.rb', line 6

def url
  @url
end

Instance Method Details

#arnObject



11
12
13
14
# File 'lib/propono/components/queue.rb', line 11

def arn
  attributes = sqs.get_queue_attributes(@url, 'QueueArn').body["Attributes"]
  attributes["QueueArn"]
end