Class: PagesCore::PubSub::Subscriber

Inherits:
Object
  • Object
show all
Defined in:
lib/pages_core/pub_sub.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(name, callback) ⇒ Subscriber

Returns a new instance of Subscriber.


30
31
32
33
# File 'lib/pages_core/pub_sub.rb', line 30

def initialize(name, callback)
  @name = name
  @callback = callback
end

Instance Attribute Details

#callbackObject (readonly)

Returns the value of attribute callback


26
27
28
# File 'lib/pages_core/pub_sub.rb', line 26

def callback
  @callback
end

#nameObject (readonly)

Returns the value of attribute name


26
27
28
# File 'lib/pages_core/pub_sub.rb', line 26

def name
  @name
end