Class: OmniScrapper::ScrapperBuilder
- Inherits:
-
Object
- Object
- OmniScrapper::ScrapperBuilder
- Defined in:
- lib/omni_scrapper/scrapper_builder.rb
Instance Attribute Summary collapse
-
#config ⇒ Object
Returns the value of attribute config.
-
#scrapper_name ⇒ Object
Returns the value of attribute scrapper_name.
Instance Method Summary collapse
- #define_classes ⇒ Object
-
#initialize(scrapper_name, config) ⇒ ScrapperBuilder
constructor
A new instance of ScrapperBuilder.
Constructor Details
#initialize(scrapper_name, config) ⇒ ScrapperBuilder
Returns a new instance of ScrapperBuilder.
5 6 7 8 |
# File 'lib/omni_scrapper/scrapper_builder.rb', line 5 def initialize(scrapper_name, config) self.scrapper_name = scrapper_name self.config = config end |
Instance Attribute Details
#config ⇒ Object
Returns the value of attribute config.
3 4 5 |
# File 'lib/omni_scrapper/scrapper_builder.rb', line 3 def config @config end |
#scrapper_name ⇒ Object
Returns the value of attribute scrapper_name.
3 4 5 |
# File 'lib/omni_scrapper/scrapper_builder.rb', line 3 def scrapper_name @scrapper_name end |
Instance Method Details
#define_classes ⇒ Object
10 11 12 13 |
# File 'lib/omni_scrapper/scrapper_builder.rb', line 10 def define_classes define_scrapper_class(scrapper_name, config) define_page_class end |