Class: Bifrost::Subscriber
- Inherits:
-
Object
- Object
- Bifrost::Subscriber
- Defined in:
- lib/bifrost/subscriber.rb
Overview
A subscriber is a type that registers interest in receiving messages posted to certain topics
Instance Attribute Summary collapse
-
#name ⇒ Object
readonly
Returns the value of attribute name.
-
#options ⇒ Object
readonly
Returns the value of attribute options.
Instance Method Summary collapse
-
#initialize(name, options = {}) ⇒ Subscriber
constructor
A new instance of Subscriber.
Constructor Details
#initialize(name, options = {}) ⇒ Subscriber
Returns a new instance of Subscriber.
8 9 10 11 |
# File 'lib/bifrost/subscriber.rb', line 8 def initialize(name, = {}) @name ||= name @options ||= end |
Instance Attribute Details
#name ⇒ Object (readonly)
Returns the value of attribute name.
6 7 8 |
# File 'lib/bifrost/subscriber.rb', line 6 def name @name end |
#options ⇒ Object (readonly)
Returns the value of attribute options.
6 7 8 |
# File 'lib/bifrost/subscriber.rb', line 6 def @options end |