gitlab-ce/lib/gitlab/cycle_analytics/events_fetcher.rb

16 lines
346 B
Ruby

module Gitlab
module CycleAnalytics
class EventsFetcher
def initialize(project:, options:)
@query = EventsQuery.new(project: project, options: options)
end
def fetch(stage:)
@query.execute(stage) do |stage_class, base_query|
stage_class.query(base_query)
end
end
end
end
end