Class: Crawlberg::BrowserConfig

Inherits:
Object
  • Object
show all
Defined in:
sig/types.rbs

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeBrowserConfig

Returns a new instance of BrowserConfig.

Parameters:

  • mode: (BrowserMode)
  • backend: (BrowserBackend)
  • endpoint: (String)
  • timeout: (Integer)
  • wait: (BrowserWait)
  • wait_selector: (String)
  • extra_wait: (Integer)
  • proxy: (ProxyConfig)
  • block_url_patterns: (Array[String])
  • eval_script: (String)
  • robots_user_agent: (String)
  • capture_network_events: (Boolean)
  • session_affinity: (Boolean)


63
# File 'sig/types.rbs', line 63

def initialize: (?mode: BrowserMode, ?backend: BrowserBackend, ?endpoint: String, ?timeout: Integer, ?wait: BrowserWait, ?wait_selector: String, ?extra_wait: Integer, ?proxy: ProxyConfig, ?block_url_patterns: Array[String], ?eval_script: String, ?robots_user_agent: String, ?capture_network_events: bool, ?session_affinity: bool) -> void

Instance Attribute Details

#backendBrowserBackend?

Returns the value of attribute backend.

Returns:



50
51
52
# File 'sig/types.rbs', line 50

def backend
  @backend
end

#block_url_patternsArray[String]?

Returns the value of attribute block_url_patterns.

Returns:

  • (Array[String], nil)


57
58
59
# File 'sig/types.rbs', line 57

def block_url_patterns
  @block_url_patterns
end

#capture_network_eventsBoolean?

Returns the value of attribute capture_network_events.

Returns:

  • (Boolean, nil)


60
61
62
# File 'sig/types.rbs', line 60

def capture_network_events
  @capture_network_events
end

#endpointString?

Returns the value of attribute endpoint.

Returns:

  • (String, nil)


51
52
53
# File 'sig/types.rbs', line 51

def endpoint
  @endpoint
end

#eval_scriptString?

Returns the value of attribute eval_script.

Returns:

  • (String, nil)


58
59
60
# File 'sig/types.rbs', line 58

def eval_script
  @eval_script
end

#extra_waitInteger?

Returns the value of attribute extra_wait.

Returns:

  • (Integer, nil)


55
56
57
# File 'sig/types.rbs', line 55

def extra_wait
  @extra_wait
end

#modeBrowserMode?

Returns the value of attribute mode.

Returns:



49
50
51
# File 'sig/types.rbs', line 49

def mode
  @mode
end

#proxyProxyConfig?

Returns the value of attribute proxy.

Returns:



56
57
58
# File 'sig/types.rbs', line 56

def proxy
  @proxy
end

#robots_user_agentString?

Returns the value of attribute robots_user_agent.

Returns:

  • (String, nil)


59
60
61
# File 'sig/types.rbs', line 59

def robots_user_agent
  @robots_user_agent
end

#session_affinityBoolean?

Returns the value of attribute session_affinity.

Returns:

  • (Boolean, nil)


61
62
63
# File 'sig/types.rbs', line 61

def session_affinity
  @session_affinity
end

#timeoutInteger?

Returns the value of attribute timeout.

Returns:

  • (Integer, nil)


52
53
54
# File 'sig/types.rbs', line 52

def timeout
  @timeout
end

#waitBrowserWait?

Returns the value of attribute wait.

Returns:



53
54
55
# File 'sig/types.rbs', line 53

def wait
  @wait
end

#wait_selectorString?

Returns the value of attribute wait_selector.

Returns:

  • (String, nil)


54
55
56
# File 'sig/types.rbs', line 54

def wait_selector
  @wait_selector
end

Class Method Details

.defaultBrowserConfig

Returns:



64
# File 'sig/types.rbs', line 64

def self.default: () -> BrowserConfig