Module: Rubee::PubSub::Subscriber::ClassMethods

Defined in:
lib/rubee/pubsub/subscriber.rb

Instance Method Summary collapse

Instance Method Details

#sub(channel, *args, &block) ⇒ Object



11
12
13
14
15
# File 'lib/rubee/pubsub/subscriber.rb', line 11

def sub(channel, *args, &block)
  Rubee::Configuration.pubsub_container.sub(channel, name, *args, &block)

  true
end

#unsub(channel, *args, &block) ⇒ Object



17
18
19
20
21
# File 'lib/rubee/pubsub/subscriber.rb', line 17

def unsub(channel, *args, &block)
  Rubee::Configuration.pubsub_container.unsub(channel, name, *args, &block)

  true
end