Class: Circuitry::Queue
- Inherits:
-
Object
- Object
- Circuitry::Queue
- Includes:
- Services::SQS
- Defined in:
- lib/circuitry/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.
- #name ⇒ Object
Methods included from Services::SQS
Constructor Details
#initialize(url) ⇒ Queue
Returns a new instance of Queue.
9 10 11 |
# File 'lib/circuitry/queue.rb', line 9 def initialize(url) @url = url end |
Instance Attribute Details
#url ⇒ Object (readonly)
Returns the value of attribute url.
7 8 9 |
# File 'lib/circuitry/queue.rb', line 7 def url @url end |
Instance Method Details
#arn ⇒ Object
17 18 19 |
# File 'lib/circuitry/queue.rb', line 17 def arn @arn ||= attribute('QueueArn') end |
#name ⇒ Object
13 14 15 |
# File 'lib/circuitry/queue.rb', line 13 def name url.split('/').last end |