Class: Gitlab::CycleAnalytics::StageSummary
- Inherits:
-
Object
- Object
- Gitlab::CycleAnalytics::StageSummary
- Defined in:
- lib/gitlab/cycle_analytics/stage_summary.rb
Instance Method Summary collapse
- #data ⇒ Object
-
#initialize(project, options:, current_user:) ⇒ StageSummary
constructor
A new instance of StageSummary.
Constructor Details
#initialize(project, options:, current_user:) ⇒ StageSummary
Returns a new instance of StageSummary.
6 7 8 9 10 |
# File 'lib/gitlab/cycle_analytics/stage_summary.rb', line 6 def initialize(project, options:, current_user:) @project = project @options = @current_user = current_user end |
Instance Method Details
#data ⇒ Object
12 13 14 15 16 17 |
# File 'lib/gitlab/cycle_analytics/stage_summary.rb', line 12 def data summary = [issue_stats] summary << commit_stats if user_has_sufficient_access? summary << deploy_stats summary << deployment_frequency_stats end |