Class: Bickle::HumanizeDecorator

Inherits:
SimpleDelegator
  • Object
show all
Defined in:
lib/bickle/humanize_decorator.rb

Instance Method Summary collapse

Constructor Details

#initialize(build) ⇒ HumanizeDecorator

Returns a new instance of HumanizeDecorator.



3
4
5
6
# File 'lib/bickle/humanize_decorator.rb', line 3

def initialize(build)
  @build = build
  super
end

Instance Method Details

#resultObject



8
9
10
11
12
13
14
15
16
# File 'lib/bickle/humanize_decorator.rb', line 8

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