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