Class: Propono::Queue
- Inherits:
-
Object
- Object
- Propono::Queue
- Includes:
- Sqs
- Defined in:
- lib/propono/components/queue.rb
Instance Attribute Summary collapse
-
#url ⇒ Object
readonly
Returns the value of attribute url.
Instance Method Summary collapse
- #arn ⇒ Object
-
#initialize(url) ⇒ Queue
constructor
A new instance of Queue.
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
#url ⇒ Object (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
#arn ⇒ Object
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 |