Class: Dionysus::TopicName
- Inherits:
-
Object
- Object
- Dionysus::TopicName
- Defined in:
- lib/dionysus/topic_name.rb
Instance Method Summary collapse
-
#initialize(namespace, name) ⇒ TopicName
constructor
A new instance of TopicName.
- #to_s ⇒ Object
Constructor Details
#initialize(namespace, name) ⇒ TopicName
Returns a new instance of TopicName.
7 8 9 10 |
# File 'lib/dionysus/topic_name.rb', line 7 def initialize(namespace, name) @namespace = namespace @name = name end |
Instance Method Details
#to_s ⇒ Object
12 13 14 |
# File 'lib/dionysus/topic_name.rb', line 12 def to_s "#{namespace}_#{name}" end |