Class: Bickle::HumanizeDecorator
- Inherits:
-
SimpleDelegator
- Object
- SimpleDelegator
- Bickle::HumanizeDecorator
- Defined in:
- lib/bickle/humanize_decorator.rb
Instance Method Summary collapse
-
#initialize(build) ⇒ HumanizeDecorator
constructor
A new instance of HumanizeDecorator.
- #result ⇒ Object
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
#result ⇒ Object
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 |