lib/luna_park/http/response.rb in luna_park-0.11.7 vs lib/luna_park/http/response.rb in luna_park-0.12.0

- old
+ new

@@ -111,10 +111,17 @@ # response.cookies # => {'secret' => '6f7a8459e4330122cac2b9752506a813610b814d'} # # @return Hash attr_reader :cookies + # Exception of failed request + # Can be raised after call (without bang) + # Will be raised after call! (with bang) + # + # @return LunaPark::Errors::Http + attr_reader :exception + # The request that actually initializes the current response # # @example # request = Request.new( # title: 'Get users list', @@ -342,10 +349,10 @@ rescue Errors::JsonParse nil end # @example - # request.to_h # => { + # response.to_h # => { # :code=>200, # :body=>"John Doe, Marry Ann", # :headers=>{}, :cookies=>{}, # :request=>{ # :title=>"Get users",