Class: RubyPushNotifications::MPNS::MalformedMPNSResultError

Inherits:
MPNSResult
  • Object
show all
Defined in:
lib/ruby-push-notifications/mpns/mpns_result.rb

Overview

This error occurs when the cloud service sends a notification request with a bad XML document or malformed notification URI.

Constant Summary

Constants inherited from MPNSResult

RubyPushNotifications::MPNS::MPNSResult::X_DEVICE_CONNECTION_STATUS, RubyPushNotifications::MPNS::MPNSResult::X_NOTIFICATION_STATUS, RubyPushNotifications::MPNS::MPNSResult::X_SUBSCRIPTION_STATUS

Instance Attribute Summary

Attributes inherited from MPNSResult

#device_url

Instance Method Summary collapse

Constructor Details

#initialize(device_url) ⇒ MalformedMPNSResultError

Returns a new instance of MalformedMPNSResultError.



54
55
56
# File 'lib/ruby-push-notifications/mpns/mpns_result.rb', line 54

def initialize(device_url)
  @device_url = device_url
end

Instance Method Details

#==(other) ⇒ Object



58
59
60
61
# File 'lib/ruby-push-notifications/mpns/mpns_result.rb', line 58

def ==(other)
  (other.is_a?(MalformedMPNSResultError) &&
    device_url == other.device_url) || super(other)
end