Class: RubyPushNotifications::FCM::FCMResultError

Inherits:
FCMResult
  • Object
show all
Defined in:
lib/ruby-push-notifications/fcm/fcm_result.rb

Overview

An error occurred sending the notification to the registration ID.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(error) ⇒ FCMResultError

Returns a new instance of FCMResultError.



44
45
46
# File 'lib/ruby-push-notifications/fcm/fcm_result.rb', line 44

def initialize(error)
  @error = error
end

Instance Attribute Details

#errorString

Returns . The error sent by FCM.

Returns:

  • (String)

    . The error sent by FCM



42
43
44
# File 'lib/ruby-push-notifications/fcm/fcm_result.rb', line 42

def error
  @error
end

Instance Method Details

#==(other) ⇒ Object



48
49
50
# File 'lib/ruby-push-notifications/fcm/fcm_result.rb', line 48

def ==(other)
  (other.is_a?(FCMResultError) && @error == other.error) || super(other)
end