Class: Tjcrawler::Config
- Inherits:
-
Object
- Object
- Tjcrawler::Config
- Defined in:
- lib/tjcrawler/config.rb
Instance Attribute Summary collapse
-
#css_selector ⇒ Object
Returns the value of attribute css_selector.
-
#db_setting ⇒ Object
Returns the value of attribute db_setting.
-
#proc ⇒ Object
Returns the value of attribute proc.
-
#threads ⇒ Object
Returns the value of attribute threads.
Instance Method Summary collapse
-
#initialize ⇒ Config
constructor
A new instance of Config.
Constructor Details
#initialize ⇒ Config
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_selector ⇒ Object
Returns the value of attribute css_selector.
3 4 5 |
# File 'lib/tjcrawler/config.rb', line 3 def css_selector @css_selector end |
#db_setting ⇒ Object
Returns the value of attribute db_setting.
3 4 5 |
# File 'lib/tjcrawler/config.rb', line 3 def db_setting @db_setting end |
#proc ⇒ Object
Returns the value of attribute proc.
3 4 5 |
# File 'lib/tjcrawler/config.rb', line 3 def proc @proc end |
#threads ⇒ Object
Returns the value of attribute threads.
3 4 5 |
# File 'lib/tjcrawler/config.rb', line 3 def threads @threads end |