Class: Tjcrawler::Config

Inherits:
Object
  • Object
show all
Defined in:
lib/tjcrawler/config.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeConfig

Returns a new instance of Config.



4
5
6
# File 'lib/tjcrawler/config.rb', line 4

def initialize
  @threads = 5
end

Instance Attribute Details

#css_selectorObject

Returns the value of attribute css_selector.



3
4
5
# File 'lib/tjcrawler/config.rb', line 3

def css_selector
  @css_selector
end

#db_settingObject

Returns the value of attribute db_setting.



3
4
5
# File 'lib/tjcrawler/config.rb', line 3

def db_setting
  @db_setting
end

#procObject

Returns the value of attribute proc.



3
4
5
# File 'lib/tjcrawler/config.rb', line 3

def proc
  @proc
end

#threadsObject

Returns the value of attribute threads.



3
4
5
# File 'lib/tjcrawler/config.rb', line 3

def threads
  @threads
end