Class: SubPub::ScopedTopic

Inherits:
Object
  • Object
show all
Defined in:
lib/sub_pub/scoped_topic.rb

Instance Method Summary collapse

Constructor Details

#initialize(topic, scope) ⇒ ScopedTopic

Returns a new instance of ScopedTopic.



3
4
5
6
# File 'lib/sub_pub/scoped_topic.rb', line 3

def initialize(topic, scope)
  @topic = topic
  @scope = scope
end

Instance Method Details

#full_topicObject



8
9
10
# File 'lib/sub_pub/scoped_topic.rb', line 8

def full_topic
  "#{@scope}::#{@topic}"
end

#topicObject



12
13
14
# File 'lib/sub_pub/scoped_topic.rb', line 12

def topic
  @topic
end