Class: Firebase::Admin::Messaging::Notification
- Inherits:
-
Object
- Object
- Firebase::Admin::Messaging::Notification
- Defined in:
- lib/firebase/admin/messaging/notification.rb
Overview
A notification that can be included in a message.
Instance Attribute Summary collapse
-
#body ⇒ String?
Body of the notification.
-
#image ⇒ String?
Image url of the notification.
-
#title ⇒ String?
Title of the notification.
Instance Method Summary collapse
-
#initialize(title: nil, body: nil, image: nil) ⇒ Notification
constructor
Initializes a Notification.
Constructor Details
#initialize(title: nil, body: nil, image: nil) ⇒ Notification
Initializes a Firebase::Admin::Messaging::Notification.
26 27 28 29 30 |
# 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 |
Instance Attribute Details
#body ⇒ String?
Returns Body of the notification.
12 13 14 |
# File 'lib/firebase/admin/messaging/notification.rb', line 12 def body @body end |
#image ⇒ String?
Returns Image url of the notification.
16 17 18 |
# File 'lib/firebase/admin/messaging/notification.rb', line 16 def image @image end |
#title ⇒ String?
Returns Title of the notification.
8 9 10 |
# File 'lib/firebase/admin/messaging/notification.rb', line 8 def title @title end |