Class: RubyPushNotifications::GCM::GCMResultError
- Defined in:
- lib/ruby-push-notifications/gcm/gcm_result.rb
Overview
An error occurred sending the notification to the registration ID.
Instance Attribute Summary collapse
-
#error ⇒ String
. The error sent by GCM.
Instance Method Summary collapse
- #==(other) ⇒ Object
-
#initialize(error) ⇒ GCMResultError
constructor
A new instance of GCMResultError.
Constructor Details
#initialize(error) ⇒ GCMResultError
Returns a new instance of GCMResultError.
43 44 45 |
# File 'lib/ruby-push-notifications/gcm/gcm_result.rb', line 43 def initialize(error) @error = error end |
Instance Attribute Details
#error ⇒ String
Returns . The error sent by GCM.
41 42 43 |
# File 'lib/ruby-push-notifications/gcm/gcm_result.rb', line 41 def error @error end |
Instance Method Details
#==(other) ⇒ Object
47 48 49 |
# File 'lib/ruby-push-notifications/gcm/gcm_result.rb', line 47 def ==(other) (other.is_a?(GCMResultError) && @error == other.error) || super(other) end |