Class: Scraypa::Configuration
- Inherits:
-
Object
- Object
- Scraypa::Configuration
- Defined in:
- lib/scraypa/configuration.rb
Instance Attribute Summary collapse
-
#driver ⇒ Object
Returns the value of attribute driver.
-
#driver_options ⇒ Object
Returns the value of attribute driver_options.
-
#eye_tor_config_template ⇒ Object
Returns the value of attribute eye_tor_config_template.
-
#headless_chromium ⇒ Object
Returns the value of attribute headless_chromium.
-
#reset_driver_every_n_requests ⇒ Object
Returns the value of attribute reset_driver_every_n_requests.
-
#throttle_seconds ⇒ Object
Returns the value of attribute throttle_seconds.
-
#tor ⇒ Object
Returns the value of attribute tor.
-
#tor_options ⇒ Object
Returns the value of attribute tor_options.
-
#use_capybara ⇒ Object
Returns the value of attribute use_capybara.
-
#user_agent ⇒ Object
Returns the value of attribute user_agent.
Instance Method Summary collapse
-
#initialize ⇒ Configuration
constructor
A new instance of Configuration.
Constructor Details
#initialize ⇒ Configuration
Returns a new instance of Configuration.
7 8 9 10 11 12 13 14 15 16 17 18 |
# File 'lib/scraypa/configuration.rb', line 7 def initialize @use_capybara = nil @tor = nil @tor_options = nil @user_agent = nil @driver = nil @driver_options = nil @eye_tor_config_template = nil @throttle_seconds = nil @headless_chromium = nil @reset_driver_every_n_requests = 5 end |
Instance Attribute Details
#driver ⇒ Object
Returns the value of attribute driver.
3 4 5 |
# File 'lib/scraypa/configuration.rb', line 3 def driver @driver end |
#driver_options ⇒ Object
Returns the value of attribute driver_options.
3 4 5 |
# File 'lib/scraypa/configuration.rb', line 3 def @driver_options end |
#eye_tor_config_template ⇒ Object
Returns the value of attribute eye_tor_config_template.
3 4 5 |
# File 'lib/scraypa/configuration.rb', line 3 def eye_tor_config_template @eye_tor_config_template end |
#headless_chromium ⇒ Object
Returns the value of attribute headless_chromium.
3 4 5 |
# File 'lib/scraypa/configuration.rb', line 3 def headless_chromium @headless_chromium end |
#reset_driver_every_n_requests ⇒ Object
Returns the value of attribute reset_driver_every_n_requests.
3 4 5 |
# File 'lib/scraypa/configuration.rb', line 3 def reset_driver_every_n_requests @reset_driver_every_n_requests end |
#throttle_seconds ⇒ Object
Returns the value of attribute throttle_seconds.
3 4 5 |
# File 'lib/scraypa/configuration.rb', line 3 def throttle_seconds @throttle_seconds end |
#tor ⇒ Object
Returns the value of attribute tor.
3 4 5 |
# File 'lib/scraypa/configuration.rb', line 3 def tor @tor end |
#tor_options ⇒ Object
Returns the value of attribute tor_options.
3 4 5 |
# File 'lib/scraypa/configuration.rb', line 3 def @tor_options end |
#use_capybara ⇒ Object
Returns the value of attribute use_capybara.
3 4 5 |
# File 'lib/scraypa/configuration.rb', line 3 def @use_capybara end |
#user_agent ⇒ Object
Returns the value of attribute user_agent.
3 4 5 |
# File 'lib/scraypa/configuration.rb', line 3 def user_agent @user_agent end |