Class: OmniScrapper::ScrapperBuilder

Inherits:
Object
  • Object
show all
Defined in:
lib/omni_scrapper/scrapper_builder.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#configObject

Returns the value of attribute config.



3
4
5
# File 'lib/omni_scrapper/scrapper_builder.rb', line 3

def config
  @config
end

#scrapper_nameObject

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_classesObject



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