Module: Typhoeus::Request::Responseable

Included in:
Typhoeus::Request
Defined in:
lib/typhoeus/request/responseable.rb

Overview

This module contains logic for having a reponse getter and setter.

Since:

  • 0.5.0

Instance Method Summary collapse

Instance Method Details

#responseResponse

Return the response.

Examples:

Return response.

request.response

Since:

  • 0.5.0


24
25
26
# File 'lib/typhoeus/request/responseable.rb', line 24

def response
  @response ||= nil
end

#response=(value) ⇒ Object

Set the response.

Examples:

Set response.

request.response = response

Since:

  • 0.5.0


14
15
16
# File 'lib/typhoeus/request/responseable.rb', line 14

def response=(value)
  @response = value
end