Class: Camoufox::Configuration
- Inherits:
-
Object
- Object
- Camoufox::Configuration
- Defined in:
- lib/camoufox/configuration.rb
Instance Attribute Summary collapse
-
#cache_dir ⇒ Object
Returns the value of attribute cache_dir.
-
#data_dir ⇒ Object
Returns the value of attribute data_dir.
-
#node_path ⇒ Object
Returns the value of attribute node_path.
-
#playwright_driver_dir ⇒ Object
Returns the value of attribute playwright_driver_dir.
Instance Method Summary collapse
-
#initialize ⇒ Configuration
constructor
A new instance of Configuration.
- #reset_defaults ⇒ Object
Constructor Details
#initialize ⇒ Configuration
Returns a new instance of Configuration.
7 8 9 |
# File 'lib/camoufox/configuration.rb', line 7 def initialize reset_defaults end |
Instance Attribute Details
#cache_dir ⇒ Object
Returns the value of attribute cache_dir.
5 6 7 |
# File 'lib/camoufox/configuration.rb', line 5 def cache_dir @cache_dir end |
#data_dir ⇒ Object
Returns the value of attribute data_dir.
5 6 7 |
# File 'lib/camoufox/configuration.rb', line 5 def data_dir @data_dir end |
#node_path ⇒ Object
Returns the value of attribute node_path.
5 6 7 |
# File 'lib/camoufox/configuration.rb', line 5 def node_path @node_path end |
#playwright_driver_dir ⇒ Object
Returns the value of attribute playwright_driver_dir.
5 6 7 |
# File 'lib/camoufox/configuration.rb', line 5 def playwright_driver_dir @playwright_driver_dir end |
Instance Method Details
#reset_defaults ⇒ Object
11 12 13 14 15 16 |
# File 'lib/camoufox/configuration.rb', line 11 def reset_defaults @data_dir = ENV['CAMOUFOX_DATA_DIR'] @cache_dir = ENV['CAMOUFOX_CACHE_DIR'] @node_path = ENV['CAMOUFOX_NODE_PATH'] || 'node' @playwright_driver_dir = ENV['CAMOUFOX_PLAYWRIGHT_DRIVER_DIR'] end |