Sha256: 5f0673727f0591526c44e368ea72e87a6d68a445b81c4db0421c2ff6d90247f0

Contents?: true

Size: 279 Bytes

Versions: 3

Compression:

Stored size: 279 Bytes

Contents

module CircleCI
  module CoverageReporter
    # @attr coverage [Float]
    # @attr url [String] URL for coverage index.html
    Result = Struct.new(:coverage, :url) do
      # @return [String]
      def pretty_coverage
        "#{coverage.round(2)}%"
      end
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
circleci-coverage_reporter-0.8.0 lib/circleci/coverage_reporter/result.rb
circleci-coverage_reporter-0.7.0 lib/circleci/coverage_reporter/result.rb
circleci-coverage_reporter-0.6.0 lib/circleci/coverage_reporter/result.rb