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
- #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.
9 10 11 |
# File 'lib/puppeteer/http_request.rb', line 9 def initialize(request) @request = request end |
Instance Method Details
#failure_text=(failure_text) ⇒ Object
30 31 32 |
# File 'lib/puppeteer/http_request.rb', line 30 def failure_text=(failure_text) @request.instance_variable_set(:@failure_text, failure_text) end |
#from_memory_cache=(from_memory_cache) ⇒ Object
34 35 36 |
# File 'lib/puppeteer/http_request.rb', line 34 def from_memory_cache=(from_memory_cache) @request.instance_variable_set(:@from_memory_cache, from_memory_cache) end |
#from_memory_cache? ⇒ Boolean
38 39 40 |
# File 'lib/puppeteer/http_request.rb', line 38 def from_memory_cache? @request.instance_variable_get(:@from_memory_cache) end |
#interception_id ⇒ Object
17 18 19 |
# File 'lib/puppeteer/http_request.rb', line 17 def interception_id @request.instance_variable_get(:@interception_id) end |
#redirect_chain ⇒ Object
26 27 28 |
# File 'lib/puppeteer/http_request.rb', line 26 def redirect_chain @request.instance_variable_get(:@redirect_chain) end |
#request_id ⇒ Object
13 14 15 |
# File 'lib/puppeteer/http_request.rb', line 13 def request_id @request.instance_variable_get(:@request_id) end |
#response=(response) ⇒ Object
22 23 24 |
# File 'lib/puppeteer/http_request.rb', line 22 def response=(response) @request.instance_variable_set(:@response, response) end |