Class: Docs::UrlScraper

Inherits:
Scraper show all
Defined in:
lib/docs/core/scrapers/url_scraper.rb

Constant Summary

Constants inherited from Doc

Doc::DB_FILENAME, Doc::INDEX_FILENAME

Class Attribute Summary collapse

Class Method Summary collapse

Methods inherited from Scraper

#base_url, #build_page, #build_pages, filters, #initial_paths, #initial_urls, #options, #pipeline, #root_path, #root_path?, #root_url

Methods included from Instrumentable

extended, included

Methods inherited from Doc

as_json, #build_page, #build_pages, db_path, index_path, #initialize, path, store_page, store_pages

Constructor Details

This class inherits a constructor from Docs::Doc

Class Attribute Details

.paramsObject

Returns the value of attribute params


4
5
6
# File 'lib/docs/core/scrapers/url_scraper.rb', line 4

def params
  @params
end

Class Method Details

.inherited(subclass) ⇒ Object


6
7
8
9
# File 'lib/docs/core/scrapers/url_scraper.rb', line 6

def inherited(subclass)
  super
  subclass.params = params.deep_dup
end