Class: GhBbAudit::KeywordsList
- Inherits:
-
Object
- Object
- GhBbAudit::KeywordsList
- Defined in:
- lib/gh_bb_audit/keywords_list.rb
Instance Method Summary collapse
- #all_keywords ⇒ Object
-
#initialize(path_to_csv_file) ⇒ KeywordsList
constructor
A new instance of KeywordsList.
Constructor Details
#initialize(path_to_csv_file) ⇒ KeywordsList
Returns a new instance of KeywordsList.
4 5 6 |
# File 'lib/gh_bb_audit/keywords_list.rb', line 4 def initialize(path_to_csv_file) @keywords_csv_file_path = path_to_csv_file end |
Instance Method Details
#all_keywords ⇒ Object
8 9 10 11 |
# File 'lib/gh_bb_audit/keywords_list.rb', line 8 def all_keywords #Not rescuing here, as we should crash if we can not get keywords @keywords ||= ::CSV.read(@keywords_csv_file_path).flatten.uniq end |