Module: Gitlab::CycleAnalytics::GroupProjectsProvider

Included in:
BaseEventFetcher, BaseStage
Defined in:
lib/gitlab/cycle_analytics/group_projects_provider.rb

Instance Method Summary collapse

Instance Method Details

#groupObject


10
11
12
# File 'lib/gitlab/cycle_analytics/group_projects_provider.rb', line 10

def group
  @group ||= options.fetch(:group, nil)
end

#projectObject


14
15
16
# File 'lib/gitlab/cycle_analytics/group_projects_provider.rb', line 14

def project
  @project ||= options.fetch(:project, nil)
end

#projectsObject


6
7
8
# File 'lib/gitlab/cycle_analytics/group_projects_provider.rb', line 6

def projects
  group ? projects_for_group : [project]
end