Class: Scraypa::Configuration

Inherits:
Object
  • Object
show all
Defined in:
lib/scraypa/configuration.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeConfiguration

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

#driverObject

Returns the value of attribute driver.



3
4
5
# File 'lib/scraypa/configuration.rb', line 3

def driver
  @driver
end

#driver_optionsObject

Returns the value of attribute driver_options.



3
4
5
# File 'lib/scraypa/configuration.rb', line 3

def driver_options
  @driver_options
end

#eye_tor_config_templateObject

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_chromiumObject

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_requestsObject

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_secondsObject

Returns the value of attribute throttle_seconds.



3
4
5
# File 'lib/scraypa/configuration.rb', line 3

def throttle_seconds
  @throttle_seconds
end

#torObject

Returns the value of attribute tor.



3
4
5
# File 'lib/scraypa/configuration.rb', line 3

def tor
  @tor
end

#tor_optionsObject

Returns the value of attribute tor_options.



3
4
5
# File 'lib/scraypa/configuration.rb', line 3

def tor_options
  @tor_options
end

#use_capybaraObject

Returns the value of attribute use_capybara.



3
4
5
# File 'lib/scraypa/configuration.rb', line 3

def use_capybara
  @use_capybara
end

#user_agentObject

Returns the value of attribute user_agent.



3
4
5
# File 'lib/scraypa/configuration.rb', line 3

def user_agent
  @user_agent
end