v3: add missing files
This commit is contained in:
parent
7fce1b93f3
commit
963a217fbf
10
lib/travis/api/v3/queries/build.rb
Normal file
10
lib/travis/api/v3/queries/build.rb
Normal file
|
@ -0,0 +1,10 @@
|
||||||
|
module Travis::API::V3
|
||||||
|
class Queries::Build < Query
|
||||||
|
params :id
|
||||||
|
|
||||||
|
def find
|
||||||
|
return ::Build.find_by_id(id) if id
|
||||||
|
raise WrongParams
|
||||||
|
end
|
||||||
|
end
|
||||||
|
end
|
8
lib/travis/api/v3/renderer/build.rb
Normal file
8
lib/travis/api/v3/renderer/build.rb
Normal file
|
@ -0,0 +1,8 @@
|
||||||
|
require 'travis/api/v3/renderer/model_renderer'
|
||||||
|
|
||||||
|
module Travis::API::V3
|
||||||
|
class Renderer::Build < Renderer::ModelRenderer
|
||||||
|
representation(:minimal, :id, :number, :state, :duration, :started_at, :finished_at)
|
||||||
|
representation(:standard, *representations[:minimal], :repository)
|
||||||
|
end
|
||||||
|
end
|
Loading…
Reference in New Issue
Block a user