Sha256: 876f16288f622a1608b2a1e680d89529feb01220d8a60c7fd489a064b55e78ef

Contents?: true

Size: 476 Bytes

Versions: 1

Compression:

Stored size: 476 Bytes

Contents

build, repository = @hash.values_at(:build, :repository)

child build => :build do
  attributes :id, :finished_at

  node(:result)    { build.status }
  node(:parent_id) { build.owner_id } if build.is_a?(Job)
end

child repository => :repository do
  attributes :id, :last_build_id, :last_build_number, :last_build_started_at, :last_build_finished_at

  node(:last_build_result) { |repository| repository.last_build_status }
  node(:slug) { |repository| repository.slug }
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
travis-core-0.0.1 lib/travis/notifications/pusher/views/v1/event/build/finished.rabl