2018-12-05 23:21:45 +05:30
|
|
|
# frozen_string_literal: true
|
|
|
|
|
|
|
|
class TriggerVariableEntity < Grape::Entity
|
|
|
|
include RequestAwareEntity
|
|
|
|
|
2019-02-15 15:39:39 +05:30
|
|
|
expose :key, :public
|
|
|
|
expose :value, if: ->(_, _) { can?(request.current_user, :admin_build, request.project) }
|
2018-12-05 23:21:45 +05:30
|
|
|
end
|