Class: Google::Apis::FcmV1::WebpushFcmOptions

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
lib/google/apis/fcm_v1/classes.rb,
lib/google/apis/fcm_v1/representations.rb,
lib/google/apis/fcm_v1/representations.rb

Overview

Options for features provided by the FCM SDK for Web.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ WebpushFcmOptions

Returns a new instance of WebpushFcmOptions.



831
832
833
# File 'lib/google/apis/fcm_v1/classes.rb', line 831

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#analytics_labelString

Label associated with the message's analytics data. Corresponds to the JSON property analyticsLabel

Returns:

  • (String)


823
824
825
# File 'lib/google/apis/fcm_v1/classes.rb', line 823

def analytics_label
  @analytics_label
end

The link to open when the user clicks on the notification. For all URL values, HTTPS is required. Corresponds to the JSON property link

Returns:

  • (String)


829
830
831
# File 'lib/google/apis/fcm_v1/classes.rb', line 829

def link
  @link
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



836
837
838
839
# File 'lib/google/apis/fcm_v1/classes.rb', line 836

def update!(**args)
  @analytics_label = args[:analytics_label] if args.key?(:analytics_label)
  @link = args[:link] if args.key?(:link)
end