Class: CrawlerDetect::Config
- Inherits:
-
Qonfig::DataSet
- Object
- Qonfig::DataSet
- CrawlerDetect::Config
- Defined in:
- lib/crawler_detect/config.rb
Overview
Configuration of CrawlerDetect
Constant Summary collapse
- CUR_PATH =
File.dirname(File.(__FILE__)).freeze
- RAW_PATH =
File.join(CUR_PATH, "library/raw").freeze
- RAW_CRAWLERS_PATH =
File.join(RAW_PATH, "Crawlers.json").freeze
- RAW_EXCLUSIONS_PATH =
File.join(RAW_PATH, "Exclusions.json").freeze
- RAW_HEADERS_PATH =
File.join(RAW_PATH, "Headers.json").freeze
Instance Method Summary collapse
-
#raw_crawlers_path ⇒ String
Path to crawlers raw JSON file.
-
#raw_exclusions_path ⇒ String
Path to exclusions raw JSON file.
-
#raw_headers_path ⇒ String
Path to headers raw JSON file.
Instance Method Details
#raw_crawlers_path ⇒ String
Returns path to crawlers raw JSON file.
17 |
# File 'lib/crawler_detect/config.rb', line 17 setting :raw_crawlers_path, RAW_CRAWLERS_PATH |
#raw_exclusions_path ⇒ String
Returns path to exclusions raw JSON file.
20 |
# File 'lib/crawler_detect/config.rb', line 20 setting :raw_exclusions_path, RAW_EXCLUSIONS_PATH |
#raw_headers_path ⇒ String
Returns path to headers raw JSON file.
23 |
# File 'lib/crawler_detect/config.rb', line 23 setting :raw_headers_path, RAW_HEADERS_PATH |