debian-mirror-gitlab/app/graphql/types/alert_management/status_enum.rb
2020-05-24 23:13:21 +05:30

15 lines
361 B
Ruby

# frozen_string_literal: true
module Types
module AlertManagement
class StatusEnum < BaseEnum
graphql_name 'AlertManagementStatus'
description 'Alert status values'
::AlertManagement::Alert::STATUSES.each do |name, value|
value name.upcase, value: value, description: "#{name.to_s.titleize} status"
end
end
end
end