Sha256: 1d79251ae8f28a83327b049052a4cdc2d7490f91d40857e95dd244113c7a4f79

Contents?: true

Size: 216 Bytes

Versions: 12

Compression:

Stored size: 216 Bytes

Contents

module VCR
  class ResponseStatus < Struct.new(:code, :message)
    include Normalizers::StatusMessage

    def self.from_net_http_response(response)
      new(response.code.to_i, response.message)
    end
  end
end

Version data entries

12 entries across 12 versions & 1 rubygems

Version Path
vcr-1.11.3 lib/vcr/structs/response_status.rb
vcr-1.11.2 lib/vcr/structs/response_status.rb
vcr-1.11.1 lib/vcr/structs/response_status.rb
vcr-1.10.3 lib/vcr/structs/response_status.rb
vcr-1.10.2 lib/vcr/structs/response_status.rb
vcr-1.10.0 lib/vcr/structs/response_status.rb
vcr-1.9.0 lib/vcr/structs/response_status.rb
vcr-1.8.0 lib/vcr/structs/response_status.rb
vcr-1.7.2 lib/vcr/structs/response_status.rb
vcr-1.7.1 lib/vcr/structs/response_status.rb
vcr-1.7.0 lib/vcr/structs/response_status.rb
vcr-1.6.0 lib/vcr/structs/response_status.rb