Welcome to mirror list, hosted at ThFree Co, Russian Federation.

daily_build_group_report_result_entity.rb « ci « serializers « app - gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: e4118db9b1f600b8ae2de2d444582cef8b7eee07 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
# frozen_string_literal: true

module Ci
  class DailyBuildGroupReportResultEntity < Grape::Entity
    expose :date

    ::Ci::DailyBuildGroupReportResult::PARAM_TYPES.each do |type|
      expose type, if: lambda { |report_result, options| options[:param_type] == type } do |report_result, options|
        report_result.data[options[:param_type]]
      end
    end
  end
end