BigW Consortium Gitlab

events.rb 895 Bytes
Newer Older
1 2 3
module Gitlab
  module CycleAnalytics
    class Events
4
      def initialize(project:, options:)
5
        @project = project
6
        @options = options
7 8 9
      end

      def issue_events
10
        IssueEvent.new(project: @project, options: @options).fetch
11
      end
12

James Lopez committed
13
      def plan_events
14
        PlanEvent.new(project: @project, options: @options).fetch
James Lopez committed
15 16
      end

17
      def code_events
18
        CodeEvent.new(project: @project, options: @options).fetch
19 20
      end

21
      def test_events
22
        TestEvent.new(project: @project, options: @options).fetch
23 24
      end

25
      def review_events
26
        ReviewEvent.new(project: @project, options: @options).fetch
27 28
      end

29
      def staging_events
30
        StagingEvent.new(project: @project, options: @options).fetch
31 32
      end

33
      def production_events
34
        ProductionEvent.new(project: @project, options: @options).fetch
35
      end
36 37 38
    end
  end
end