class RubyPushNotifications::MPNS::MPNSLimitError
This error occurs when an unauthenticated cloud service has reached the per-day throttling limit for a subscription, or when a cloud service (authenticated or unauthenticated) has sent too many notifications per second.
Attributes
device_connection_status[RW]
@return [String]. The connection status of the device.
notification_status[RW]
@return [String]. The status of the notification received by the Microsoft Push Notification Service.
subscription_status[RW]
@return [String]. The subscription status.
Public Class Methods
new(device_url, headers)
click to toggle source
# File lib/ruby-push-notifications/mpns/mpns_result.rb, line 119 def initialize(device_url, headers) @device_url = device_url @notification_status = headers[X_NOTIFICATION_STATUS] @device_connection_status = headers[X_DEVICE_CONNECTION_STATUS] @subscription_status = headers[X_SUBSCRIPTION_STATUS] end
Public Instance Methods
==(other)
click to toggle source
Calls superclass method
# File lib/ruby-push-notifications/mpns/mpns_result.rb, line 126 def ==(other) (other.is_a?(MPNSLimitError) && device_url == other.device_url && notification_status == other.notification_status && device_connection_status == other.device_connection_status && subscription_status == other.subscription_status) || super(other) end