Class: Google::Apis::FcmV1::ApnsFcmOptions

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 iOS.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ ApnsFcmOptions

Returns a new instance of ApnsFcmOptions.



434
435
436
# File 'lib/google/apis/fcm_v1/classes.rb', line 434

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)


426
427
428
# File 'lib/google/apis/fcm_v1/classes.rb', line 426

def analytics_label
  @analytics_label
end

#imageString

Contains the URL of an image that is going to be displayed in a notification. If present, it will override google.firebase.fcm.v1.Notification.image. Corresponds to the JSON property image

Returns:

  • (String)


432
433
434
# File 'lib/google/apis/fcm_v1/classes.rb', line 432

def image
  @image
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



439
440
441
442
# File 'lib/google/apis/fcm_v1/classes.rb', line 439

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