gitlab-org--gitlab-foss/app/serializers/build_metadata_entity.rb

6 lines
160 B
Ruby

class BuildMetadataEntity < Grape::Entity
expose :timeout_human_readable
expose :timeout_source do |metadata|
metadata.present.timeout_source
end
end