diff options
author | Matija Čupić <matteeyah@gmail.com> | 2018-01-30 04:11:17 +0300 |
---|---|---|
committer | Matija Čupić <matteeyah@gmail.com> | 2018-02-05 20:58:20 +0300 |
commit | 04263b9f3be22bd97249162d9d3e27829c639d07 (patch) | |
tree | 35ee2f322d2275caba9647ab0f91dabb0c4bf39d /app/serializers | |
parent | 9be519c199b01d4b4b1c69ec4d74a1e99345eb47 (diff) |
Add GroupVariableSerializer for Ci::GroupVariable
Diffstat (limited to 'app/serializers')
-rw-r--r-- | app/serializers/group_variable_entity.rb | 7 | ||||
-rw-r--r-- | app/serializers/group_variable_serializer.rb | 3 |
2 files changed, 10 insertions, 0 deletions
diff --git a/app/serializers/group_variable_entity.rb b/app/serializers/group_variable_entity.rb new file mode 100644 index 00000000000..62cf0b21e1e --- /dev/null +++ b/app/serializers/group_variable_entity.rb @@ -0,0 +1,7 @@ +class GroupVariableEntity < Grape::Entity + expose :id + expose :key + expose :value + + expose :protected?, as: :protected +end diff --git a/app/serializers/group_variable_serializer.rb b/app/serializers/group_variable_serializer.rb new file mode 100644 index 00000000000..8f8205924aa --- /dev/null +++ b/app/serializers/group_variable_serializer.rb @@ -0,0 +1,3 @@ +class GroupVariableSerializer < BaseSerializer + entity GroupVariableEntity +end |