travis-api/lib/travis/api/serialize/v0/notification/build.rb
2016-06-18 18:01:09 +02:00

30 lines
510 B
Ruby

module Travis
module Api
module Serialize
module V0
module Notification
class Build
attr_reader :build
def initialize(build, options = {})
@build = build
end
def data
{
'build' => build_data
}
end
def build_data
{
'id' => build.id
}
end
end
end
end
end
end
end