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

Inherits:
Object
  • Object
show all
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

Instance Method Summary collapse

Methods included from Core::JsonObjectSupport

#to_json

Methods included from Core::Hashable

process_value, #to_h

Constructor Details

#initialize(**args) ⇒ WebpushFcmOptions

Returns a new instance of WebpushFcmOptions



936
937
938
# File 'generated/google/apis/fcm_v1/classes.rb', line 936

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

Instance Attribute Details

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)


934
935
936
# File 'generated/google/apis/fcm_v1/classes.rb', line 934

def link
  @link
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



941
942
943
# File 'generated/google/apis/fcm_v1/classes.rb', line 941

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