Class: Circuitry::Queue

Inherits:
Object
  • Object
show all
Includes:
Services::SQS
Defined in:
lib/circuitry/queue.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Services::SQS

#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

#urlObject (readonly)

Returns the value of attribute url.



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

def url
  @url
end

Instance Method Details

#arnObject



17
18
19
# File 'lib/circuitry/queue.rb', line 17

def arn
  @arn ||= attribute('QueueArn')
end

#nameObject



13
14
15
# File 'lib/circuitry/queue.rb', line 13

def name
  url.split('/').last
end