Exception: PushToDevices::Exception

Inherits:
StandardError
  • Object
show all
Defined in:
lib/push_to_devices.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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_bodyObject

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_codeObject

Returns the value of attribute response_code.



12
13
14
# File 'lib/push_to_devices.rb', line 12

def response_code
  @response_code
end