Exception: Pushing::DeliveryError

Inherits:
RuntimeError
  • Object
show all
Defined in:
lib/pushing/platforms.rb

Direct Known Subclasses

ApnDeliveryError, FcmDeliveryError

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(message, response = nil, notification = nil) ⇒ DeliveryError

Returns a new instance of DeliveryError.



99
100
101
102
103
# File 'lib/pushing/platforms.rb', line 99

def initialize(message, response = nil, notification = nil)
  super(message)
  @response = response
  @notification = notification
end

Instance Attribute Details

#notificationObject (readonly)

Returns the value of attribute notification.



97
98
99
# File 'lib/pushing/platforms.rb', line 97

def notification
  @notification
end

#responseObject (readonly)

Returns the value of attribute response.



97
98
99
# File 'lib/pushing/platforms.rb', line 97

def response
  @response
end