Exception: SMSBox::ResponseException

Inherits:
Exception
  • Object
show all
Defined in:
lib/sms_box/response_exception.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(error, response) ⇒ ResponseException

Returns a new instance of ResponseException.



6
7
8
9
# File 'lib/sms_box/response_exception.rb', line 6

def initialize(error, response)
  super(error)
  self.response = response
end

Instance Attribute Details

#errorObject

Returns the value of attribute error.



3
4
5
# File 'lib/sms_box/response_exception.rb', line 3

def error
  @error
end

#responseObject

Returns the value of attribute response.



4
5
6
# File 'lib/sms_box/response_exception.rb', line 4

def response
  @response
end