Class: Puppeteer::HTTPRequest::InternalAccessor
- Inherits:
-
Object
- Object
- Puppeteer::HTTPRequest::InternalAccessor
- Defined in:
- lib/puppeteer/http_request.rb
Overview
defines some methods used only in NetworkManager, Response
Instance Method Summary collapse
- #client=(client) ⇒ Object
- #failure_text=(failure_text) ⇒ Object
- #from_memory_cache=(from_memory_cache) ⇒ Object
- #from_memory_cache? ⇒ Boolean
-
#initialize(request) ⇒ InternalAccessor
constructor
A new instance of InternalAccessor.
- #interception_id ⇒ Object
- #redirect_chain ⇒ Object
- #request_id ⇒ Object
- #response=(response) ⇒ Object
Constructor Details
#initialize(request) ⇒ InternalAccessor
Returns a new instance of InternalAccessor.
13 14 15 |
# File 'lib/puppeteer/http_request.rb', line 13 def initialize(request) @request = request end |
Instance Method Details
#client=(client) ⇒ Object
21 22 23 |
# File 'lib/puppeteer/http_request.rb', line 21 def client=(client) @request.instance_variable_set(:@client, client) end |
#failure_text=(failure_text) ⇒ Object
38 39 40 |
# File 'lib/puppeteer/http_request.rb', line 38 def failure_text=(failure_text) @request.instance_variable_set(:@failure_text, failure_text) end |
#from_memory_cache=(from_memory_cache) ⇒ Object
42 43 44 |
# File 'lib/puppeteer/http_request.rb', line 42 def from_memory_cache=(from_memory_cache) @request.instance_variable_set(:@from_memory_cache, from_memory_cache) end |
#from_memory_cache? ⇒ Boolean
46 47 48 |
# File 'lib/puppeteer/http_request.rb', line 46 def from_memory_cache? @request.instance_variable_get(:@from_memory_cache) end |
#interception_id ⇒ Object
25 26 27 |
# File 'lib/puppeteer/http_request.rb', line 25 def interception_id @request.instance_variable_get(:@interception_id) end |
#redirect_chain ⇒ Object
34 35 36 |
# File 'lib/puppeteer/http_request.rb', line 34 def redirect_chain @request.instance_variable_get(:@redirect_chain) end |
#request_id ⇒ Object
17 18 19 |
# File 'lib/puppeteer/http_request.rb', line 17 def request_id @request.instance_variable_get(:@request_id) end |
#response=(response) ⇒ Object
30 31 32 |
# File 'lib/puppeteer/http_request.rb', line 30 def response=(response) @request.instance_variable_set(:@response, response) end |