class Maia::FCM::Notification
Public Class Methods
new(message)
click to toggle source
# File lib/maia/fcm/notification.rb, line 4 def initialize(message) @message = message end
Public Instance Methods
body()
click to toggle source
# File lib/maia/fcm/notification.rb, line 12 def body @message.body end
image()
click to toggle source
# File lib/maia/fcm/notification.rb, line 16 def image @message.image end
title()
click to toggle source
# File lib/maia/fcm/notification.rb, line 8 def title @message.title end
to_h()
click to toggle source
# File lib/maia/fcm/notification.rb, line 20 def to_h { title: title, body: body, image: image }.compact end