Sha256: d659cca0940f534e3badf26f1d8a98d91e42a568b7f24f9e3b41dd9a9a1a11f5

Contents?: true

Size: 438 Bytes

Versions: 8

Compression:

Stored size: 438 Bytes

Contents

module RestClient

  # A Response from RestClient, you can access the response body, the code or the headers.
  #
  module Response

    include AbstractResponse

    attr_accessor :args, :net_http_res

    def body
      self
    end

    def Response.create body, net_http_res, args
      result = body || ''
      result.extend Response
      result.net_http_res = net_http_res
      result.args = args
      result
    end

  end
end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
rest-client-1.7.0-x86-mswin32 lib/restclient/response.rb
rest-client-1.7.0-x64-mingw32 lib/restclient/response.rb
rest-client-1.7.0-x86-mingw32 lib/restclient/response.rb
rest-client-1.7.0 lib/restclient/response.rb
rest-client-1.7.0.rc1-x86-mswin32 lib/restclient/response.rb
rest-client-1.7.0.rc1-x64-mingw32 lib/restclient/response.rb
rest-client-1.7.0.rc1-x86-mingw32 lib/restclient/response.rb
rest-client-1.7.0.rc1 lib/restclient/response.rb