lib/propono/components/queue.rb in propono-1.7.0 vs lib/propono/components/queue.rb in propono-2.0.0.rc1
- old
+ new
@@ -1,16 +1,14 @@
module Propono
class Queue
- include Sqs
-
- attr_reader :url
- def initialize(url)
+ attr_reader :url, :attributes
+ def initialize(url, attributes)
@url = url
+ @attributes = attributes
end
def arn
- attributes = sqs.get_queue_attributes(@url, 'QueueArn').body["Attributes"]
- attributes["QueueArn"]
+ @arn ||= attributes["QueueArn"]
end
end
end