Method: ADCK::Connection#send_notification
- Defined in:
- lib/adck/connection.rb
#send_notification(token, message = nil) ⇒ Object
53 54 55 56 57 58 59 60 61 |
# File 'lib/adck/connection.rb', line 53 def send_notification token, =nil if token.is_a?(Notification) n = token else n = Notification.new(token,) end send_notifications([n]) end |