Class: Circuitry::Provisioning::TopicCreator
- Inherits:
-
Object
- Object
- Circuitry::Provisioning::TopicCreator
- Includes:
- Services::SNS
- Defined in:
- lib/circuitry/provisioning/topic_creator.rb
Instance Attribute Summary collapse
-
#topic_name ⇒ Object
readonly
Returns the value of attribute topic_name.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(topic_name) ⇒ TopicCreator
constructor
A new instance of TopicCreator.
- #topic ⇒ Object
Methods included from Services::SNS
Constructor Details
#initialize(topic_name) ⇒ TopicCreator
Returns a new instance of TopicCreator.
15 16 17 |
# File 'lib/circuitry/provisioning/topic_creator.rb', line 15 def initialize(topic_name) self.topic_name = topic_name end |
Instance Attribute Details
#topic_name ⇒ Object
Returns the value of attribute topic_name.
9 10 11 |
# File 'lib/circuitry/provisioning/topic_creator.rb', line 9 def topic_name @topic_name end |
Class Method Details
.find_or_create(topic_name) ⇒ Object
11 12 13 |
# File 'lib/circuitry/provisioning/topic_creator.rb', line 11 def self.find_or_create(topic_name) new(topic_name).topic end |