Class: Result
- Inherits:
-
Object
- Object
- Result
- Defined in:
- lib/challenges.rb
Overview
captures the result of the test
Instance Attribute Summary collapse
-
#expected ⇒ Object
readonly
Returns the value of attribute expected.
-
#got ⇒ Object
Returns the value of attribute got.
-
#index ⇒ Object
readonly
Returns the value of attribute index.
-
#status ⇒ Object
Returns the value of attribute status.
Instance Method Summary collapse
-
#initialize(index, expected, got = nil, status = Status::SUCCESS) ⇒ Result
constructor
A new instance of Result.
Constructor Details
Instance Attribute Details
#expected ⇒ Object (readonly)
Returns the value of attribute expected.
51 52 53 |
# File 'lib/challenges.rb', line 51 def expected @expected end |
#got ⇒ Object
Returns the value of attribute got.
50 51 52 |
# File 'lib/challenges.rb', line 50 def got @got end |
#index ⇒ Object (readonly)
Returns the value of attribute index.
51 52 53 |
# File 'lib/challenges.rb', line 51 def index @index end |
#status ⇒ Object
Returns the value of attribute status.
50 51 52 |
# File 'lib/challenges.rb', line 50 def status @status end |