Sha256: d27ab3a247072c8875e6742b0ad028310c79a5f003d00f614e00e5ad9457974e

Contents?: true

Size: 275 Bytes

Versions: 1

Compression:

Stored size: 275 Bytes

Contents

module Bickle
  class HumanizeDecorator < SimpleDelegator
    def initialize(build)
      @build = build
      super
    end

    def result
      if @build.pass?
        "PASS"
      elsif @build.fail?
        "FAIL"
      else
        "PENDING"
      end
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
bickle-0.0.1 lib/bickle/humanize_decorator.rb