Class: Google::Apis::FcmV1::Notification
- Inherits:
-
Object
- Object
- Google::Apis::FcmV1::Notification
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- generated/google/apis/fcm_v1/classes.rb,
generated/google/apis/fcm_v1/representations.rb,
generated/google/apis/fcm_v1/representations.rb
Overview
Basic notification template to use across all platforms.
Instance Attribute Summary collapse
-
#body ⇒ String
The notification's body text.
-
#title ⇒ String
The notification's title.
Instance Method Summary collapse
-
#initialize(**args) ⇒ Notification
constructor
A new instance of Notification.
-
#update!(**args) ⇒ Object
Update properties of this object.
Methods included from Core::JsonObjectSupport
Methods included from Core::Hashable
Constructor Details
#initialize(**args) ⇒ Notification
Returns a new instance of Notification
396 397 398 |
# File 'generated/google/apis/fcm_v1/classes.rb', line 396 def initialize(**args) update!(**args) end |
Instance Attribute Details
#body ⇒ String
The notification's body text.
Corresponds to the JSON property body
389 390 391 |
# File 'generated/google/apis/fcm_v1/classes.rb', line 389 def body @body end |
#title ⇒ String
The notification's title.
Corresponds to the JSON property title
394 395 396 |
# File 'generated/google/apis/fcm_v1/classes.rb', line 394 def title @title end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
401 402 403 404 |
# File 'generated/google/apis/fcm_v1/classes.rb', line 401 def update!(**args) @body = args[:body] if args.key?(:body) @title = args[:title] if args.key?(:title) end |