gitlab-org--gitlab-foss/lib/gitlab/cycle_analytics/events.rb

39 lines
895 B
Ruby
Raw Normal View History

module Gitlab
module CycleAnalytics
class Events
def initialize(project:, options:)
@project = project
@options = options
end
def issue_events
IssueEvent.new(project: @project, options: @options).fetch
end
2016-10-18 04:06:42 -04:00
2016-10-19 06:47:09 -04:00
def plan_events
PlanEvent.new(project: @project, options: @options).fetch
2016-10-19 06:47:09 -04:00
end
def code_events
CodeEvent.new(project: @project, options: @options).fetch
end
def test_events
TestEvent.new(project: @project, options: @options).fetch
end
2016-10-21 02:50:27 -04:00
def review_events
ReviewEvent.new(project: @project, options: @options).fetch
2016-10-21 02:50:27 -04:00
end
2016-10-21 05:33:37 -04:00
def staging_events
StagingEvent.new(project: @project, options: @options).fetch
2016-10-21 05:33:37 -04:00
end
def production_events
ProductionEvent.new(project: @project, options: @options).fetch
2016-10-18 04:06:42 -04:00
end
end
end
end