class RubyPushNotifications::FCM::FCMCanonicalIDResult

Indicates that the notification was successfully sent to the corresponding registration ID but GCM sent a canonical ID for it, so the received canonical ID should be used as registration ID ASAP.

Attributes

canonical_id[R]

@return [String]. The suggested canonical ID from GCM

Public Class Methods

new(canonical_id) click to toggle source
# File lib/ruby-push-notifications/fcm/fcm_result.rb, line 27
def initialize(canonical_id)
  @canonical_id = canonical_id
end

Public Instance Methods

==(other) click to toggle source
Calls superclass method
# File lib/ruby-push-notifications/fcm/fcm_result.rb, line 31
def ==(other)
  (other.is_a?(FCMCanonicalIDResult) && @canonical_id == other.canonical_id) ||
  super(other)
end