lib/propono/components/topic.rb in propono-1.7.0 vs lib/propono/components/topic.rb in propono-2.0.0.rc1
- old
+ new
@@ -1,11 +1,12 @@
module Propono
class Topic
+ attr_reader :aws_topic
+ def initialize(aws_topic)
+ @aws_topic = aws_topic
+ end
- include Sqs
-
- attr_reader :arn
- def initialize(arn)
- @arn = arn
+ def arn
+ @arn ||= aws_topic.topic_arn
end
end
end