Class: CrawlerDetect::Config

Inherits:
Qonfig::DataSet
  • Object
show all
Defined in:
lib/crawler_detect/config.rb

Overview

Configuration of CrawlerDetect

See Also:

  • settings

Since:

  • 1.0.0

Constant Summary collapse

CUR_PATH =

Since:

  • 1.0.0

File.dirname(File.expand_path(__FILE__)).freeze
RAW_PATH =

Since:

  • 1.0.0

File.join(CUR_PATH, "library/raw").freeze
RAW_CRAWLERS_PATH =

Since:

  • 1.0.0

File.join(RAW_PATH, "Crawlers.json").freeze
RAW_EXCLUSIONS_PATH =

Since:

  • 1.0.0

File.join(RAW_PATH, "Exclusions.json").freeze
RAW_HEADERS_PATH =

Since:

  • 1.0.0

File.join(RAW_PATH, "Headers.json").freeze

Instance Method Summary collapse

Instance Method Details

#raw_crawlers_pathString

Returns path to crawlers raw JSON file.

Returns:

  • (String)

    path to crawlers raw JSON file

Since:

  • 1.0.0



17
# File 'lib/crawler_detect/config.rb', line 17

setting :raw_crawlers_path, RAW_CRAWLERS_PATH

#raw_exclusions_pathString

Returns path to exclusions raw JSON file.

Returns:

  • (String)

    path to exclusions raw JSON file

Since:

  • 1.0.0



20
# File 'lib/crawler_detect/config.rb', line 20

setting :raw_exclusions_path, RAW_EXCLUSIONS_PATH

#raw_headers_pathString

Returns path to headers raw JSON file.

Returns:

  • (String)

    path to headers raw JSON file

Since:

  • 1.0.0



23
# File 'lib/crawler_detect/config.rb', line 23

setting :raw_headers_path, RAW_HEADERS_PATH