gitlab-org--gitlab-foss/lib/gitlab/cycle_analytics/events.rb
James Lopez ec7db295d2 Started refactoring stuff to add events to cycle analytics
- Refactored cycle analytics class to extract DB logic
- Reuse logic in new events fetcher
- Started adding cycle analytics events class and spec (still not functional)
2016-11-17 08:22:54 +01:00

15 lines
300 B
Ruby

module Gitlab
module CycleAnalytics
class Events
def initialize(project:, from:)
@project = project
@from = from
@fetcher = EventsFetcher.new(project: project, from: from)
end
def issue_events
@fetcher.fetch_issues
end
end
end
end