summaryrefslogtreecommitdiff
path: root/app/serializers/ci/basic_variable_entity.rb
diff options
context:
space:
mode:
Diffstat (limited to 'app/serializers/ci/basic_variable_entity.rb')
-rw-r--r--app/serializers/ci/basic_variable_entity.rb13
1 files changed, 13 insertions, 0 deletions
diff --git a/app/serializers/ci/basic_variable_entity.rb b/app/serializers/ci/basic_variable_entity.rb
new file mode 100644
index 00000000000..dad59e8735b
--- /dev/null
+++ b/app/serializers/ci/basic_variable_entity.rb
@@ -0,0 +1,13 @@
+# frozen_string_literal: true
+
+module Ci
+ class BasicVariableEntity < Grape::Entity
+ expose :id
+ expose :key
+ expose :value
+ expose :variable_type
+
+ expose :protected?, as: :protected
+ expose :masked?, as: :masked
+ end
+end