Class: Simple::Scraper::Configuration

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeConfiguration

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

#loggerObject

Returns the value of attribute logger.



4
5
6
# File 'lib/simple/scraper/configuration.rb', line 4

def logger
  @logger
end

#number_of_threadsObject

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_addrObject

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_passObject

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_portObject

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_userObject

Returns the value of attribute proxy_user.



4
5
6
# File 'lib/simple/scraper/configuration.rb', line 4

def proxy_user
  @proxy_user
end