class Grocer::Pusher
Public Class Methods
new(connection)
click to toggle source
# File lib/grocer/pusher.rb, line 3 def initialize(connection) @connection = connection end
Public Instance Methods
push(notification)
click to toggle source
# File lib/grocer/pusher.rb, line 7 def push(notification) @connection.write(notification.to_bytes) end