Class: PagesCore::PubSub::Subscriber
- Inherits:
-
Object
- Object
- PagesCore::PubSub::Subscriber
- Defined in:
- lib/pages_core/pub_sub.rb
Instance Attribute Summary collapse
-
#callback ⇒ Object
readonly
Returns the value of attribute callback.
-
#name ⇒ Object
readonly
Returns the value of attribute name.
Instance Method Summary collapse
-
#initialize(name, callback) ⇒ Subscriber
constructor
A new instance of Subscriber.
Constructor Details
#initialize(name, callback) ⇒ Subscriber
Returns a new instance of Subscriber.
31 32 33 34 |
# File 'lib/pages_core/pub_sub.rb', line 31 def initialize(name, callback) @name = name @callback = callback end |
Instance Attribute Details
#callback ⇒ Object (readonly)
Returns the value of attribute callback.
27 28 29 |
# File 'lib/pages_core/pub_sub.rb', line 27 def callback @callback end |
#name ⇒ Object (readonly)
Returns the value of attribute name.
27 28 29 |
# File 'lib/pages_core/pub_sub.rb', line 27 def name @name end |