Class: Crawlberg::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: (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)


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

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 (readonly)

Returns the value of attribute backend.

Returns:



74
75
76
# File 'sig/types.rbs', line 74

def backend
  @backend
end

#block_url_patternsArray[String] (readonly)

Returns the value of attribute block_url_patterns.

Returns:

  • (Array[String])


81
82
83
# File 'sig/types.rbs', line 81

def block_url_patterns
  @block_url_patterns
end

#capture_network_eventsBoolean (readonly)

Returns the value of attribute capture_network_events.

Returns:

  • (Boolean)


84
85
86
# File 'sig/types.rbs', line 84

def capture_network_events
  @capture_network_events
end

#endpointString? (readonly)

Returns the value of attribute endpoint.

Returns:

  • (String, nil)


75
76
77
# File 'sig/types.rbs', line 75

def endpoint
  @endpoint
end

#eval_scriptString? (readonly)

Returns the value of attribute eval_script.

Returns:

  • (String, nil)


82
83
84
# File 'sig/types.rbs', line 82

def eval_script
  @eval_script
end

#extra_waitInteger? (readonly)

Returns the value of attribute extra_wait.

Returns:

  • (Integer, nil)


79
80
81
# File 'sig/types.rbs', line 79

def extra_wait
  @extra_wait
end

#modeBrowserMode (readonly)

Returns the value of attribute mode.

Returns:



73
74
75
# File 'sig/types.rbs', line 73

def mode
  @mode
end

#proxyProxyConfig? (readonly)

Returns the value of attribute proxy.

Returns:



80
81
82
# File 'sig/types.rbs', line 80

def proxy
  @proxy
end

#robots_user_agentString? (readonly)

Returns the value of attribute robots_user_agent.

Returns:

  • (String, nil)


83
84
85
# File 'sig/types.rbs', line 83

def robots_user_agent
  @robots_user_agent
end

#session_affinityBoolean (readonly)

Returns the value of attribute session_affinity.

Returns:

  • (Boolean)


85
86
87
# File 'sig/types.rbs', line 85

def session_affinity
  @session_affinity
end

#timeoutInteger (readonly)

Returns the value of attribute timeout.

Returns:

  • (Integer)


76
77
78
# File 'sig/types.rbs', line 76

def timeout
  @timeout
end

#waitBrowserWait (readonly)

Returns the value of attribute wait.

Returns:



77
78
79
# File 'sig/types.rbs', line 77

def wait
  @wait
end

#wait_selectorString? (readonly)

Returns the value of attribute wait_selector.

Returns:

  • (String, nil)


78
79
80
# File 'sig/types.rbs', line 78

def wait_selector
  @wait_selector
end