Class: Google::Apis::FcmV1::WebpushFcmOptions
- Inherits:
-
Object
- Object
- Google::Apis::FcmV1::WebpushFcmOptions
- 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
Options for features provided by the FCM SDK for Web.
Instance Attribute Summary collapse
-
#analytics_label ⇒ String
Label associated with the message's analytics data.
-
#link ⇒ String
The link to open when the user clicks on the notification.
Instance Method Summary collapse
-
#initialize(**args) ⇒ WebpushFcmOptions
constructor
A new instance of WebpushFcmOptions.
-
#update!(**args) ⇒ Object
Update properties of this object.
Methods included from Core::JsonObjectSupport
Methods included from Core::Hashable
Constructor Details
#initialize(**args) ⇒ WebpushFcmOptions
Returns a new instance of WebpushFcmOptions.
955 956 957 |
# File 'generated/google/apis/fcm_v1/classes.rb', line 955 def initialize(**args) update!(**args) end |
Instance Attribute Details
#analytics_label ⇒ String
Label associated with the message's analytics data.
Corresponds to the JSON property analyticsLabel
947 948 949 |
# File 'generated/google/apis/fcm_v1/classes.rb', line 947 def analytics_label @analytics_label end |
#link ⇒ String
The link to open when the user clicks on the notification.
For all URL values, HTTPS is required.
Corresponds to the JSON property link
953 954 955 |
# File 'generated/google/apis/fcm_v1/classes.rb', line 953 def link @link end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
960 961 962 963 |
# File 'generated/google/apis/fcm_v1/classes.rb', line 960 def update!(**args) @analytics_label = args[:analytics_label] if args.key?(:analytics_label) @link = args[:link] if args.key?(:link) end |