Class: ActionPusher::Base::Pushable

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

Class Method Summary collapse

Class Method Details

.push(channel, event, data) ⇒ Object



15
16
17
18
# File 'lib/action_pusher.rb', line 15

def self.push(channel, event, data)
  @channel, @event, @data = channel, event, data
  Pusher[@channel].trigger(@event, @data )
end