debian-mirror-gitlab/lib/api/entities/feature_flag.rb

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

19 lines
360 B
Ruby
Raw Normal View History

2021-01-03 14:25:43 +05:30
# frozen_string_literal: true
module API
module Entities
class FeatureFlag < Grape::Entity
expose :name
expose :description
expose :active
2021-02-22 17:27:13 +05:30
expose :version
2021-01-03 14:25:43 +05:30
expose :created_at
expose :updated_at
2021-11-18 22:05:49 +05:30
expose :scopes do |_ff|
[]
end
2021-02-22 17:27:13 +05:30
expose :strategies, using: FeatureFlag::Strategy
2021-01-03 14:25:43 +05:30
end
end
end