Class: Puppeteer::Request::InternalAccessor

Inherits:
Object
  • Object
show all
Defined in:
lib/puppeteer/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.



7
8
9
# File 'lib/puppeteer/request.rb', line 7

def initialize(request)
  @request = request
end

Instance Method Details

#failure_text=(failure_text) ⇒ Object



28
29
30
# File 'lib/puppeteer/request.rb', line 28

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

#from_memory_cache=(from_memory_cache) ⇒ Object



32
33
34
# File 'lib/puppeteer/request.rb', line 32

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

#from_memory_cache?Boolean

Returns:

  • (Boolean)


36
37
38
# File 'lib/puppeteer/request.rb', line 36

def from_memory_cache?
  @request.instance_variable_get(:@from_memory_cache)
end

#interception_idObject



15
16
17
# File 'lib/puppeteer/request.rb', line 15

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

#redirect_chainObject



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

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

#request_idObject



11
12
13
# File 'lib/puppeteer/request.rb', line 11

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

#response=(response) ⇒ Object

Parameters:



20
21
22
# File 'lib/puppeteer/request.rb', line 20

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