Module: GiveLive::ClassMethods
- Defined in:
- lib/give-live-back-to-object.rb
Instance Method Summary collapse
Instance Method Details
#faye_publish(channel, message) ⇒ Object
17 18 19 |
# File 'lib/give-live-back-to-object.rb', line 17 def faye_publish(channel, ) client.publish channel, end |
#faye_subscribe(channel, &block) ⇒ Object
12 13 14 15 |
# File 'lib/give-live-back-to-object.rb', line 12 def faye_subscribe(channel, &block) wrapped_block = wrap(&block) client.subscribe channel, &wrapped_block end |