Class: SubPub::ScopedTopic

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(topic, scope) ⇒ ScopedTopic

Returns a new instance of ScopedTopic.



5
6
7
8
# File 'lib/sub_pub/scoped_topic.rb', line 5

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

Instance Attribute Details

#topicObject (readonly)

Returns the value of attribute topic.



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

def topic
  @topic
end

Instance Method Details

#full_topicObject



10
11
12
# File 'lib/sub_pub/scoped_topic.rb', line 10

def full_topic
  scoped_topic
end