Sha256: a089bd5b22455b7861f237d643374d1dadc9052f0ddc1372369bab919673216b

Contents?: true

Size: 434 Bytes

Versions: 16

Compression:

Stored size: 434 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 self.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

16 entries across 16 versions & 1 rubygems

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