Class: Dionysus::TopicName

Inherits:
Object
  • Object
show all
Defined in:
lib/dionysus/topic_name.rb

Instance Method Summary collapse

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_sObject



12
13
14
# File 'lib/dionysus/topic_name.rb', line 12

def to_s
  "#{namespace}_#{name}"
end