Sha256: 22d8dd277417cb48b9782b912d583cec5c6be2dceaac2f8b3f4450756dc1e7ae

Contents?: true

Size: 264 Bytes

Versions: 1

Compression:

Stored size: 264 Bytes

Contents

# frozen_string_literal: true

module Immoscout
  module Errors
    class Failed < StandardError
      def initialize(response)
        @status = response.status
        @body   = response.body
        super(["HTTP #{@status}", @body])
      end
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
immoscout-1.3.2 lib/immoscout/errors/failed.rb