Class: Circuitry::TopicCreator
- Inherits:
-
Object
- Object
- Circuitry::TopicCreator
- Includes:
- Services::SNS
- Defined in:
- lib/circuitry/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.
14 15 16 |
# File 'lib/circuitry/topic_creator.rb', line 14 def initialize(topic_name) @topic_name = topic_name end |
Instance Attribute Details
#topic_name ⇒ Object (readonly)
Returns the value of attribute topic_name.
8 9 10 |
# File 'lib/circuitry/topic_creator.rb', line 8 def topic_name @topic_name end |
Class Method Details
.find_or_create(topic_name) ⇒ Object
10 11 12 |
# File 'lib/circuitry/topic_creator.rb', line 10 def self.find_or_create(topic_name) new(topic_name).topic end |