lib/immoscout/errors/failed.rb in immoscout-1.3.2 vs lib/immoscout/errors/failed.rb in immoscout-1.4.0

- old
+ new

@@ -1,8 +1,9 @@ # frozen_string_literal: true module Immoscout module Errors + # Representation of a failed API request/response. class Failed < StandardError def initialize(response) @status = response.status @body = response.body super(["HTTP #{@status}", @body])