Class: Propono::Topic

Inherits:
Object
  • Object
show all
Defined in:
lib/propono/components/topic.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(aws_topic) ⇒ Topic

Returns a new instance of Topic.



4
5
6
# File 'lib/propono/components/topic.rb', line 4

def initialize(aws_topic)
  @aws_topic = aws_topic
end

Instance Attribute Details

#aws_topicObject (readonly)

Returns the value of attribute aws_topic.



3
4
5
# File 'lib/propono/components/topic.rb', line 3

def aws_topic
  @aws_topic
end

Instance Method Details

#arnObject



8
9
10
# File 'lib/propono/components/topic.rb', line 8

def arn
  @arn ||= aws_topic.topic_arn
end