Exception: RAWS::HTTP::Error

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(response) ⇒ Error

Returns a new instance of Error.



14
15
16
17
# File 'lib/raws/http.rb', line 14

def initialize(response)
  super("code=#{response.code},body=#{response.body}")
  @response = response
end

Instance Attribute Details

#responseObject (readonly)

Returns the value of attribute response.



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

def response
  @response
end