Class: RubyPushNotifications::GCM::GCMResultError

Inherits:
GCMResult
  • Object
show all
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

Instance Method Summary collapse

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

#errorString

Returns . The error sent by GCM.

Returns:

  • (String)

    . 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