summaryrefslogtreecommitdiff
path: root/app/serializers/build_metadata_entity.rb
blob: 39f429aa6c37b8ffd3302613217c5ead3e7ca1cc (plain)
1
2
3
4
5
6
7
8
9
class BuildMetadataEntity < Grape::Entity
  expose :timeout_human_readable do |metadata|
    metadata.timeout_human_readable unless metadata.timeout.nil?
  end

  expose :timeout_source do |metadata|
    metadata.present.timeout_source
  end
end