class Firebase::Admin::Messaging::Notification

A notification that can be included in a message.

Attributes

body[RW]

@return [String, nil]

Body of the notification.
image[RW]

@return [String, nil]

Image url of the notification.
title[RW]

@return [String, nil]

Title of the notification.

Public Class Methods

new(title: nil, body: nil, image: nil) click to toggle source

Initializes a {Notification}.

@param [String, nil] title

Title of the notification (optional).

@param [String, nil] body

Body of the notification (optional).

@param [String, nil]

Image url of the notification (optional).
# File lib/firebase/admin/messaging/notification.rb, line 26
def initialize(title: nil, body: nil, image: nil)
  self.title = title
  self.body = body
  self.image = image
end