summaryrefslogtreecommitdiff
path: root/app/graphql/types/user_callout_feature_name_enum.rb
blob: 410ca5e1c95dce5ce2ebb6a9d0c5a59b4555000e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
# frozen_string_literal: true

module Types
  class UserCalloutFeatureNameEnum < BaseEnum
    graphql_name 'UserCalloutFeatureNameEnum'
    description 'Name of the feature that the callout is for.'

    ::UserCallout.feature_names.keys.each do |feature_name|
      value feature_name.upcase, value: feature_name, description: "Callout feature name for #{feature_name}."
    end
  end
end