diff options
author | Grzegorz Bizon <grzesiek.bizon@gmail.com> | 2016-08-11 15:04:37 +0200 |
---|---|---|
committer | Grzegorz Bizon <grzesiek.bizon@gmail.com> | 2016-08-15 14:39:46 +0200 |
commit | 3e481f154f8e93a54cef8216c70ad5ab2d91f0f1 (patch) | |
tree | 6a5a8f7ee7e230c2e39f8d508b8c78c59f5a5ace /lib/gitlab/badge | |
parent | dbb9d6a726285bdf59cc789aac584e712ea1280c (diff) | |
download | gitlab-ce-3e481f154f8e93a54cef8216c70ad5ab2d91f0f1.tar.gz |
Add metadata and template methods for coverage badge
Diffstat (limited to 'lib/gitlab/badge')
-rw-r--r-- | lib/gitlab/badge/coverage/report.rb | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/lib/gitlab/badge/coverage/report.rb b/lib/gitlab/badge/coverage/report.rb index f06142003e3..3d56ea3e47a 100644 --- a/lib/gitlab/badge/coverage/report.rb +++ b/lib/gitlab/badge/coverage/report.rb @@ -29,6 +29,14 @@ module Gitlab @coverage.to_i end + def metadata + @metadata ||= Coverage::Metadata.new(self) + end + + def template + @template ||= Coverage::Template.new(self) + end + private def raw_coverage |