Sha256: 0e6cb4fd2750467802c683ba2f7880df6a9fb040face0d5a943492c37b0907a0

Contents?: true

Size: 549 Bytes

Versions: 7

Compression:

Stored size: 549 Bytes

Contents

module Typhoeus
  class Response
    attr_reader :code, :headers, :body, :time,
                :requested_url, :requested_remote_method,
                :requested_http_method
    
    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]
    end
  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
pauldix-typhoeus-0.0.13 lib/typhoeus/response.rb
pauldix-typhoeus-0.0.14 lib/typhoeus/response.rb
pauldix-typhoeus-0.0.15 lib/typhoeus/response.rb
pauldix-typhoeus-0.0.16 lib/typhoeus/response.rb
pauldix-typhoeus-0.0.17 lib/typhoeus/response.rb
pauldix-typhoeus-0.0.18 lib/typhoeus/response.rb
pauldix-typhoeus-0.0.19 lib/typhoeus/response.rb