Exception: Snov::Client::ResponseError

Inherits:
SnovError show all
Defined in:
lib/snov/client.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(message, response: nil) ⇒ ResponseError

Returns a new instance of ResponseError.



15
16
17
18
# File 'lib/snov/client.rb', line 15

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

Instance Attribute Details

#responseObject (readonly)

Returns the value of attribute response.



13
14
15
# File 'lib/snov/client.rb', line 13

def response
  @response
end