diff options
author | Valery Sizov <vsv2711@gmail.com> | 2015-09-15 15:51:03 +0300 |
---|---|---|
committer | Valery Sizov <vsv2711@gmail.com> | 2015-09-15 15:51:03 +0300 |
commit | e2cbb36ba9751021174fd188d1c29e736f7b5d3d (patch) | |
tree | 3515122e7480e80b68c7d527d6cc88529148dfae /lib/ci/api/entities.rb | |
parent | 16ba41a186d5ff393f7d1e3ac1b94fba485aad12 (diff) |
fix specs. Stage 5
Diffstat (limited to 'lib/ci/api/entities.rb')
-rw-r--r-- | lib/ci/api/entities.rb | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/lib/ci/api/entities.rb b/lib/ci/api/entities.rb index 07f25129663..f47bc1236b8 100644 --- a/lib/ci/api/entities.rb +++ b/lib/ci/api/entities.rb @@ -11,16 +11,13 @@ module Ci expose :builds end - class BuildOptions < Grape::Entity - expose :image - expose :services - end - class Build < Grape::Entity expose :id, :commands, :ref, :sha, :project_id, :repo_url, :before_sha, :allow_git_fetch, :project_name - expose :options, using: BuildOptions + expose :options do |model| + model.options + end expose :timeout do |model| model.timeout |