Class: Simple::Scraper::Configuration
- Inherits:
-
Object
- Object
- Simple::Scraper::Configuration
- Defined in:
- lib/simple/scraper/configuration.rb
Instance Attribute Summary collapse
-
#logger ⇒ Object
Returns the value of attribute logger.
-
#number_of_threads ⇒ Object
Returns the value of attribute number_of_threads.
-
#proxy_addr ⇒ Object
Returns the value of attribute proxy_addr.
-
#proxy_pass ⇒ Object
Returns the value of attribute proxy_pass.
-
#proxy_port ⇒ Object
Returns the value of attribute proxy_port.
-
#proxy_user ⇒ Object
Returns the value of attribute proxy_user.
Instance Method Summary collapse
-
#initialize ⇒ Configuration
constructor
A new instance of Configuration.
Constructor Details
#initialize ⇒ Configuration
Returns a new instance of Configuration.
11 12 13 14 15 16 17 18 |
# File 'lib/simple/scraper/configuration.rb', line 11 def initialize @proxy_addr = nil @proxy_port = nil @proxy_user = nil @proxy_pass = nil @logger = nil @number_of_threads = 1 end |
Instance Attribute Details
#logger ⇒ Object
Returns the value of attribute logger.
4 5 6 |
# File 'lib/simple/scraper/configuration.rb', line 4 def logger @logger end |
#number_of_threads ⇒ Object
Returns the value of attribute number_of_threads.
4 5 6 |
# File 'lib/simple/scraper/configuration.rb', line 4 def number_of_threads @number_of_threads end |
#proxy_addr ⇒ Object
Returns the value of attribute proxy_addr.
4 5 6 |
# File 'lib/simple/scraper/configuration.rb', line 4 def proxy_addr @proxy_addr end |
#proxy_pass ⇒ Object
Returns the value of attribute proxy_pass.
4 5 6 |
# File 'lib/simple/scraper/configuration.rb', line 4 def proxy_pass @proxy_pass end |
#proxy_port ⇒ Object
Returns the value of attribute proxy_port.
4 5 6 |
# File 'lib/simple/scraper/configuration.rb', line 4 def proxy_port @proxy_port end |
#proxy_user ⇒ Object
Returns the value of attribute proxy_user.
4 5 6 |
# File 'lib/simple/scraper/configuration.rb', line 4 def proxy_user @proxy_user end |