Exception: AndSon::RequestError

Inherits:
RuntimeError
  • Object
show all
Defined in:
lib/and-son/response.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(protocol_response) ⇒ RequestError

Returns a new instance of RequestError.



45
46
47
48
# File 'lib/and-son/response.rb', line 45

def initialize(protocol_response)
  super(protocol_response.status.message)
  @response = protocol_response
end

Instance Attribute Details

#responseObject (readonly)

Returns the value of attribute response.



43
44
45
# File 'lib/and-son/response.rb', line 43

def response
  @response
end