Class: Threatinator::Config::FeedSearch

Inherits:
Base
  • Object
show all
Defined in:
lib/threatinator/config/feed_search.rb

Constant Summary collapse

DEFAULT_FEED_PATH =
File.expand_path("../../../../feeds", __FILE__)

Instance Method Summary collapse

Methods inherited from Base

properties

Instance Method Details

#search_pathArray<String>

Returns An array of paths to search.

Returns:

  • (Array<String>)

    An array of paths to search



15
16
17
18
19
20
21
# File 'lib/threatinator/config/feed_search.rb', line 15

def search_path
  ret = self.path
  if self.exclude_default == false
    ret = ret + [DEFAULT_FEED_PATH]
  end
  ret
end