Module: IonicPush::Push::ClassMethods

Defined in:
lib/ionic_push/push.rb

Instance Method Summary collapse

Instance Method Details

#notification(tokens, notification_params = {}) ⇒ Object

[View source]

8
9
10
11
12
13
# File 'lib/ionic_push/push.rb', line 8

def notification(tokens, notification_params = {})
  notification = Notification.new(tokens, notification_params)
  req_push = IonicPush::Request.new(@configuration, notification.body)

  req_push.send
end