Class: Puppeteer::Launcher::LaunchOptions
- Inherits:
-
Object
- Object
- Puppeteer::Launcher::LaunchOptions
- Defined in:
- lib/puppeteer/launcher/launch_options.rb
Instance Attribute Summary collapse
-
#channel ⇒ Object
readonly
Returns the value of attribute channel.
-
#env ⇒ Object
readonly
Returns the value of attribute env.
-
#executable_path ⇒ Object
readonly
Returns the value of attribute executable_path.
-
#extra_prefs_firefox ⇒ Object
readonly
Returns the value of attribute extra_prefs_firefox.
-
#ignore_default_args ⇒ Object
readonly
Returns the value of attribute ignore_default_args.
-
#timeout ⇒ Object
readonly
Returns the value of attribute timeout.
Instance Method Summary collapse
- #dumpio? ⇒ Boolean
- #handle_SIGHUP? ⇒ Boolean
- #handle_SIGINT? ⇒ Boolean
- #handle_SIGTERM? ⇒ Boolean
-
#initialize(options) ⇒ LaunchOptions
constructor
A new instance of LaunchOptions.
- #pipe? ⇒ Boolean
Constructor Details
#initialize(options) ⇒ LaunchOptions
Returns a new instance of LaunchOptions.
34 35 36 37 38 39 40 41 42 43 44 45 46 |
# File 'lib/puppeteer/launcher/launch_options.rb', line 34 def initialize() @channel = [:channel] @executable_path = [:executable_path] @ignore_default_args = [:ignore_default_args] || false @handle_SIGINT = .fetch(:handle_SIGINT, true) @handle_SIGTERM = .fetch(:handle_SIGTERM, true) @handle_SIGHUP = .fetch(:handle_SIGHUP, true) @timeout = [:timeout] || 30000 @dumpio = [:dumpio] || false @env = [:env] || ENV @pipe = [:pipe] || false @extra_prefs_firefox = [:extra_prefs_firefox] || {} end |
Instance Attribute Details
#channel ⇒ Object (readonly)
Returns the value of attribute channel.
48 49 50 |
# File 'lib/puppeteer/launcher/launch_options.rb', line 48 def channel @channel end |
#env ⇒ Object (readonly)
Returns the value of attribute env.
48 49 50 |
# File 'lib/puppeteer/launcher/launch_options.rb', line 48 def env @env end |
#executable_path ⇒ Object (readonly)
Returns the value of attribute executable_path.
48 49 50 |
# File 'lib/puppeteer/launcher/launch_options.rb', line 48 def executable_path @executable_path end |
#extra_prefs_firefox ⇒ Object (readonly)
Returns the value of attribute extra_prefs_firefox.
48 49 50 |
# File 'lib/puppeteer/launcher/launch_options.rb', line 48 def extra_prefs_firefox @extra_prefs_firefox end |
#ignore_default_args ⇒ Object (readonly)
Returns the value of attribute ignore_default_args.
48 49 50 |
# File 'lib/puppeteer/launcher/launch_options.rb', line 48 def ignore_default_args @ignore_default_args end |
#timeout ⇒ Object (readonly)
Returns the value of attribute timeout.
48 49 50 |
# File 'lib/puppeteer/launcher/launch_options.rb', line 48 def timeout @timeout end |
Instance Method Details
#dumpio? ⇒ Boolean
62 63 64 |
# File 'lib/puppeteer/launcher/launch_options.rb', line 62 def dumpio? @dumpio end |
#handle_SIGHUP? ⇒ Boolean
58 59 60 |
# File 'lib/puppeteer/launcher/launch_options.rb', line 58 def handle_SIGHUP? @handle_SIGHUP end |
#handle_SIGINT? ⇒ Boolean
50 51 52 |
# File 'lib/puppeteer/launcher/launch_options.rb', line 50 def handle_SIGINT? @handle_SIGINT end |
#handle_SIGTERM? ⇒ Boolean
54 55 56 |
# File 'lib/puppeteer/launcher/launch_options.rb', line 54 def handle_SIGTERM? @handle_SIGTERM end |
#pipe? ⇒ Boolean
66 67 68 |
# File 'lib/puppeteer/launcher/launch_options.rb', line 66 def pipe? @pipe end |