Class: Xberg::BrowserConfig

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeBrowserConfig

Returns a new instance of BrowserConfig.

Parameters:

  • mode: (enum_BrowserMode)
  • backend: (enum_BrowserBackend)
  • endpoint: (String)
  • timeout: (Integer)
  • wait: (enum_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)


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

def initialize: (?mode: enum_BrowserMode, ?backend: enum_BrowserBackend, ?endpoint: String, ?timeout: Integer, ?wait: enum_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

#backendenum_BrowserBackend (readonly)

Returns the value of attribute backend.

Returns:

  • (enum_BrowserBackend)


96
97
98
# File 'sig/types.rbs', line 96

def backend
  @backend
end

#block_url_patternsArray[String] (readonly)

Returns the value of attribute block_url_patterns.

Returns:

  • (Array[String])


103
104
105
# File 'sig/types.rbs', line 103

def block_url_patterns
  @block_url_patterns
end

#capture_network_eventsBoolean (readonly)

Returns the value of attribute capture_network_events.

Returns:

  • (Boolean)


106
107
108
# File 'sig/types.rbs', line 106

def capture_network_events
  @capture_network_events
end

#endpointString? (readonly)

Returns the value of attribute endpoint.

Returns:

  • (String, nil)


97
98
99
# File 'sig/types.rbs', line 97

def endpoint
  @endpoint
end

#eval_scriptString? (readonly)

Returns the value of attribute eval_script.

Returns:

  • (String, nil)


104
105
106
# File 'sig/types.rbs', line 104

def eval_script
  @eval_script
end

#extra_waitInteger? (readonly)

Returns the value of attribute extra_wait.

Returns:

  • (Integer, nil)


101
102
103
# File 'sig/types.rbs', line 101

def extra_wait
  @extra_wait
end

#modeenum_BrowserMode (readonly)

Returns the value of attribute mode.

Returns:

  • (enum_BrowserMode)


95
96
97
# File 'sig/types.rbs', line 95

def mode
  @mode
end

#proxyProxyConfig? (readonly)

Returns the value of attribute proxy.

Returns:



102
103
104
# File 'sig/types.rbs', line 102

def proxy
  @proxy
end

#robots_user_agentString? (readonly)

Returns the value of attribute robots_user_agent.

Returns:

  • (String, nil)


105
106
107
# File 'sig/types.rbs', line 105

def robots_user_agent
  @robots_user_agent
end

#session_affinityBoolean (readonly)

Returns the value of attribute session_affinity.

Returns:

  • (Boolean)


107
108
109
# File 'sig/types.rbs', line 107

def session_affinity
  @session_affinity
end

#timeoutInteger (readonly)

Returns the value of attribute timeout.

Returns:

  • (Integer)


98
99
100
# File 'sig/types.rbs', line 98

def timeout
  @timeout
end

#waitenum_BrowserWait (readonly)

Returns the value of attribute wait.

Returns:

  • (enum_BrowserWait)


99
100
101
# File 'sig/types.rbs', line 99

def wait
  @wait
end

#wait_selectorString? (readonly)

Returns the value of attribute wait_selector.

Returns:

  • (String, nil)


100
101
102
# File 'sig/types.rbs', line 100

def wait_selector
  @wait_selector
end