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.



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

#callbackObject (readonly)

Returns the value of attribute callback.



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

def callback
  @callback
end

#nameObject (readonly)

Returns the value of attribute name.



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

def name
  @name
end