Class: RubyPushNotifications::WNS::MalformedWNSResultError
- Defined in:
- lib/ruby-push-notifications/wns/wns_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 WNSResult
WNSResult::X_DEVICE_CONNECTION_STATUS, WNSResult::X_NOTIFICATION_STATUS, WNSResult::X_STATUS
Instance Attribute Summary
Attributes inherited from WNSResult
Instance Method Summary collapse
- #==(other) ⇒ Object
-
#initialize(device_url) ⇒ MalformedWNSResultError
constructor
A new instance of MalformedWNSResultError.
Constructor Details
#initialize(device_url) ⇒ MalformedWNSResultError
Returns a new instance of MalformedWNSResultError.
52 53 54 |
# File 'lib/ruby-push-notifications/wns/wns_result.rb', line 52 def initialize(device_url) @device_url = device_url end |
Instance Method Details
#==(other) ⇒ Object
56 57 58 59 |
# File 'lib/ruby-push-notifications/wns/wns_result.rb', line 56 def ==(other) (other.is_a?(MalformedWNSResultError) && device_url == other.device_url) || super(other) end |