Class: Result

Inherits:
Object
  • Object
show all
Defined in:
lib/challenges.rb

Overview

captures the result of the test

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(index, expected, got = nil, status = Status::SUCCESS) ⇒ Result

Returns a new instance of Result.



53
54
55
56
57
58
# File 'lib/challenges.rb', line 53

def initialize(index, expected, got = nil, status = Status::SUCCESS)
  @index = index
  @expected = expected
  @got = got
  @status = status
end

Instance Attribute Details

#expectedObject (readonly)

Returns the value of attribute expected.



51
52
53
# File 'lib/challenges.rb', line 51

def expected
  @expected
end

#gotObject

Returns the value of attribute got.



50
51
52
# File 'lib/challenges.rb', line 50

def got
  @got
end

#indexObject (readonly)

Returns the value of attribute index.



51
52
53
# File 'lib/challenges.rb', line 51

def index
  @index
end

#statusObject

Returns the value of attribute status.



50
51
52
# File 'lib/challenges.rb', line 50

def status
  @status
end