Class: Ci::DailyBuildGroupReportResultsFinder

Inherits:
Object
  • Object
show all
Includes:
Gitlab::Allowable
Defined in:
app/finders/ci/daily_build_group_report_results_finder.rb

Instance Method Summary collapse

Methods included from Gitlab::Allowable

#can?

Constructor Details

#initialize(current_user:, project:, ref_path:, start_date:, end_date:, limit: nil) ⇒ DailyBuildGroupReportResultsFinder

Returns a new instance of DailyBuildGroupReportResultsFinder.


7
8
9
10
11
12
13
14
# File 'app/finders/ci/daily_build_group_report_results_finder.rb', line 7

def initialize(current_user:, project:, ref_path:, start_date:, end_date:, limit: nil)
  @current_user = current_user
  @project = project
  @ref_path = ref_path
  @start_date = start_date
  @end_date = end_date
  @limit = limit
end

Instance Method Details

#executeObject


16
17
18
19
20
# File 'app/finders/ci/daily_build_group_report_results_finder.rb', line 16

def execute
  return none unless query_allowed?

  query
end