Class: Puppeteer::TimeoutSettings

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

Constant Summary collapse

DEFAULT_TIMEOUT =
30000

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#default_navigation_timeout=(value) ⇒ Object (writeonly)

Sets the attribute default_navigation_timeout

Parameters:

  • value

    the value to set the attribute default_navigation_timeout to.



4
5
6
# File 'lib/puppeteer/timeout_settings.rb', line 4

def default_navigation_timeout=(value)
  @default_navigation_timeout = value
end

#default_timeout=(value) ⇒ Object (writeonly)

Sets the attribute default_timeout

Parameters:

  • value

    the value to set the attribute default_timeout to.



4
5
6
# File 'lib/puppeteer/timeout_settings.rb', line 4

def default_timeout=(value)
  @default_timeout = value
end

Instance Method Details

Returns:

  • (number)


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

def navigation_timeout
  @default_navigation_timeout || @default_timeout || DEFAULT_TIMEOUT
end

#timeoutnumber

Returns:

  • (number)


12
13
14
# File 'lib/puppeteer/timeout_settings.rb', line 12

def timeout
  @default_timeout || DEFAULT_TIMEOUT
end