Sha256: 6e069ff032feacae4e1ce599b0997aaf78de1c931810c17d7f9ebb3dd8560eba

Contents?: true

Size: 319 Bytes

Versions: 2

Compression:

Stored size: 319 Bytes

Contents

module CassetteRack
  class Response
    attr_reader :status, :headers, :body, :method

    def initialize(response)
      @status = response.status
      @headers = response.headers
      @body = response.body
    end

    def status_code
      status
    end

    def response_headers
      headers
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
cassette-rack-0.4.1 lib/cassette-rack/response.rb
cassette-rack-0.4.0 lib/cassette-rack/response.rb