class Typhoeus::Response

This class respresents the response.

def initialize(options = {})

Returns:
  • (Response) - The new response.

Parameters:
  • options (Hash) -- The options hash.

Other tags:
    Example: Create a response. -
def initialize(options = {})
  @options = options
  @headers = Header.new(options[:headers]) if options[:headers]
end

def mock

Other tags:
    Api: - private
def mock
  defined?(@mock) ? @mock : options[:mock]
end