Sha256: 38009bc3a6b020a5cbd1e5dfd4f11d90025c9f22776106289b87cb591031c1a1

Contents?: true

Size: 670 Bytes

Versions: 22

Compression:

Stored size: 670 Bytes

Contents

module Typhoeus
  class Response
    attr_accessor :request
    attr_reader :code, :headers, :body, :time,
                :requested_url, :requested_remote_method,
                :requested_http_method, :start_time
    
    def initialize(params = {})
      @code                  = params[:code]
      @headers               = params[:headers]
      @body                  = params[:body]
      @time                  = params[:time]
      @requested_url         = params[:requested_url]
      @requested_http_method = params[:requested_http_method]
      @start_time            = params[:start_time]
      @request               = params[:request]
    end
  end
end

Version data entries

22 entries across 22 versions & 4 rubygems

Version Path
pauldix-typhoeus-0.1.0 lib/typhoeus/response.rb
pauldix-typhoeus-0.1.1 lib/typhoeus/response.rb
pauldix-typhoeus-0.1.2 lib/typhoeus/response.rb
typhoeus-0.1.18 lib/typhoeus/response.rb
typhoeus-0.1.17 lib/typhoeus/response.rb
typhoeus-0.1.16 lib/typhoeus/response.rb
typhoeus-0.1.15 lib/typhoeus/response.rb
typhoeus_curly-0.1.14 lib/typhoeus/response.rb
typhoeus-0.1.14 lib/typhoeus/response.rb
typhoeus-0.1.13 lib/typhoeus/response.rb
typhoeus-0.1.12 lib/typhoeus/response.rb
typhoeus-0.1.11 lib/typhoeus/response.rb
typhoeus-0.1.10 lib/typhoeus/response.rb
typhoeus-0.1.9 lib/typhoeus/response.rb
typhoeus-0.1.8 lib/typhoeus/response.rb
typhoeus-0.1.7 lib/typhoeus/response.rb
typhoeus-0.1.6 lib/typhoeus/response.rb
typhoeus-0.1.5 lib/typhoeus/response.rb
typhoeus-0.1.4 lib/typhoeus/response.rb
sandofsky-typhoeus-0.1.3 lib/typhoeus/response.rb