Commit 2fb6fdd1 authored by Heinrich Lee Yu's avatar Heinrich Lee Yu

Remove duplicate file

This is already moved to
ee/lib/gitlab/analytics/cycle_analytics/summary/stage_time_summary.rb
parent e0bc3447
# frozen_string_literal: true
module Gitlab
module Analytics
module CycleAnalytics
module Summary
class StageTimeSummary
attr_reader :stage, :current_user, :options
def initialize(stage, options:)
@stage = stage
@current_user = options[:current_user]
@options = options
end
def data
[lead_time, cycle_time]
end
private
def lead_time
serialize(
Summary::LeadTime.new(
stage: stage, current_user: current_user, options: options
),
with_unit: true
)
end
def cycle_time
serialize(
Summary::CycleTime.new(
stage: stage, current_user: current_user, options: options
),
with_unit: true
)
end
def serialize(summary_object, with_unit: false)
AnalyticsSummarySerializer.new.represent(
summary_object, with_unit: with_unit)
end
end
end
end
end
end
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment