Exception: PushToDevices::Exception
- Inherits:
-
StandardError
- Object
- StandardError
- PushToDevices::Exception
- Defined in:
- lib/push_to_devices.rb
Instance Attribute Summary collapse
-
#response_body ⇒ Object
Returns the value of attribute response_body.
-
#response_code ⇒ Object
Returns the value of attribute response_code.
Instance Method Summary collapse
-
#initialize(response_code, response_body) ⇒ Exception
constructor
A new instance of Exception.
Constructor Details
#initialize(response_code, response_body) ⇒ Exception
Returns a new instance of Exception.
14 15 16 17 18 |
# File 'lib/push_to_devices.rb', line 14 def initialize(response_code, response_body) self.response_code = response_code self.response_body = response_body super "Response was #{response_code}, #{response_body}" end |
Instance Attribute Details
#response_body ⇒ Object
Returns the value of attribute response_body.
12 13 14 |
# File 'lib/push_to_devices.rb', line 12 def response_body @response_body end |
#response_code ⇒ Object
Returns the value of attribute response_code.
12 13 14 |
# File 'lib/push_to_devices.rb', line 12 def response_code @response_code end |