Class: SubPub::ScopedTopic
- Inherits:
-
Object
- Object
- SubPub::ScopedTopic
- Defined in:
- lib/sub_pub/scoped_topic.rb
Instance Attribute Summary collapse
-
#topic ⇒ Object
readonly
Returns the value of attribute topic.
Instance Method Summary collapse
- #full_topic ⇒ Object
-
#initialize(topic, scope) ⇒ ScopedTopic
constructor
A new instance of ScopedTopic.
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
#topic ⇒ Object (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_topic ⇒ Object
10 11 12 |
# File 'lib/sub_pub/scoped_topic.rb', line 10 def full_topic scoped_topic end |