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