Sha256: c2cb5d08793cc96ff116ebf47786886e1a5fdbf379a35dc4e8a5a5cd752039ed

Contents?: true

Size: 461 Bytes

Versions: 8

Compression:

Stored size: 461 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

    attr_writer :body

    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 & 2 rubygems

Version Path
rest-client-1.6.14 lib/restclient/response.rb
rest-client-1.6.9 lib/restclient/response.rb
rest-client-1.6.8 lib/restclient/response.rb
rest-client-maestro-1.7.5.maestro lib/restclient/response.rb
rest-client-1.6.8.rc1 lib/restclient/response.rb
rest-client-maestro-1.7.4.maestro lib/restclient/response.rb
rest-client-maestro-1.7.3.maestro lib/restclient/response.rb
rest-client-maestro-1.7.2.maestro lib/restclient/response.rb