module Hertz::Fcm

Constants

VERSION

Public Class Methods

configure() { |self| ... } click to toggle source
# File lib/hertz/fcm.rb, line 15
def configure
  yield(self)

  FirebaseCloudMessenger.project_id = project_id
  ENV['GOOGLE_PRIVATE_KEY'] = google_private_key
  ENV['GOOGLE_CLIENT_EMAIL'] = google_client_email
end
deliver_notification(notification) click to toggle source
# File lib/hertz/fcm.rb, line 23
def deliver_notification(notification)
  Hertz::Fcm::NotificationDeliveryJob.perform_later(notification)
end