Class: Puppeteer::HTTPRequest::InternalAccessor

Inherits:
Object
  • Object
show all
Defined in:
lib/puppeteer/http_request.rb

Overview

defines some methods used only in NetworkManager, Response

Instance Method Summary collapse

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

Returns:

  • (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_idObject



17
18
19
# File 'lib/puppeteer/http_request.rb', line 17

def interception_id
  @request.instance_variable_get(:@interception_id)
end

#redirect_chainObject



26
27
28
# File 'lib/puppeteer/http_request.rb', line 26

def redirect_chain
  @request.instance_variable_get(:@redirect_chain)
end

#request_idObject



13
14
15
# File 'lib/puppeteer/http_request.rb', line 13

def request_id
  @request.instance_variable_get(:@request_id)
end

#response=(response) ⇒ Object

Parameters:



22
23
24
# File 'lib/puppeteer/http_request.rb', line 22

def response=(response)
  @request.instance_variable_set(:@response, response)
end