diff options
author | Mathieu Parent <math.parent@gmail.com> | 2019-05-16 22:07:42 +0200 |
---|---|---|
committer | Mathieu Parent <math.parent@gmail.com> | 2019-05-22 07:25:26 +0200 |
commit | 00c851384e8bc957f601d27c25c36c2ca80b60c1 (patch) | |
tree | f9a4ca248cfccd0cd83ddf33313e5dc0f9aa2175 /lib/api/entities.rb | |
parent | a6e2ec0d954a14bd0ff4b1f37b3f6889eea28fde (diff) | |
download | gitlab-ce-00c851384e8bc957f601d27c25c36c2ca80b60c1.tar.gz |
API: Allow to get and set "masked" attribute for variables
Diffstat (limited to 'lib/api/entities.rb')
-rw-r--r-- | lib/api/entities.rb | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/api/entities.rb b/lib/api/entities.rb index 1a3318fe849..96a1ccefbe5 100644 --- a/lib/api/entities.rb +++ b/lib/api/entities.rb @@ -1303,6 +1303,7 @@ module API class Variable < Grape::Entity expose :variable_type, :key, :value expose :protected?, as: :protected, if: -> (entity, _) { entity.respond_to?(:protected?) } + expose :masked?, as: :masked, if: -> (entity, _) { entity.respond_to?(:masked?) } end class Pipeline < PipelineBasic |