Class: RubyPushNotifications::FCM::FCMResultError
- 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
-
#error ⇒ String
. The error sent by FCM.
Instance Method Summary collapse
- #==(other) ⇒ Object
-
#initialize(error) ⇒ FCMResultError
constructor
A new instance of FCMResultError.
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
#error ⇒ String
Returns . 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 |