Sha256: 76f004a748587f336ad1ddb1407cf3e3cddbc37b07d5811c1962ed6cd47cc7a3

Contents?: true

Size: 487 Bytes

Versions: 3

Compression:

Stored size: 487 Bytes

Contents

module Restfulie
  module Client
    module HTTP #:nodoc:
      #=Response
      # Default response class
      class Response
        attr_reader :method
        attr_reader :path
        attr_reader :code
        attr_reader :body
        attr_reader :headers

        def initialize(method, path, code, body, headers)
          @method = method
          @path = path
          @code = code
          @body = body 
          @headers = headers
        end
      end
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
restfulie-0.9.3 lib/restfulie/client/http/response.rb
restfulie-0.9.1 lib/restfulie/client/http/response.rb
restfulie-0.8.1 lib/restfulie/client/http/response.rb