Class: Varar::Core::CellDiff
- Inherits:
-
Data
- Object
- Data
- Varar::Core::CellDiff
- Defined in:
- lib/varar/core/cell_diff.rb
Overview
The verdict for one checked column after comparing against the table. expected_value/actual_value/formatted are adapter-facing, never serialized.
Instance Attribute Summary collapse
-
#actual ⇒ Object
readonly
Returns the value of attribute actual.
-
#actual_value ⇒ Object
readonly
Returns the value of attribute actual_value.
-
#column ⇒ Object
readonly
Returns the value of attribute column.
-
#expected ⇒ Object
readonly
Returns the value of attribute expected.
-
#expected_value ⇒ Object
readonly
Returns the value of attribute expected_value.
-
#formatted ⇒ Object
readonly
Returns the value of attribute formatted.
-
#ok ⇒ Object
readonly
Returns the value of attribute ok.
-
#span ⇒ Object
readonly
Returns the value of attribute span.
Instance Method Summary collapse
-
#initialize(column:, span:, expected:, actual:, ok:, expected_value: nil, actual_value: nil, formatted: false) ⇒ CellDiff
constructor
A new instance of CellDiff.
Constructor Details
#initialize(column:, span:, expected:, actual:, ok:, expected_value: nil, actual_value: nil, formatted: false) ⇒ CellDiff
Returns a new instance of CellDiff.
12 13 14 15 |
# File 'lib/varar/core/cell_diff.rb', line 12 def initialize(column:, span:, expected:, actual:, ok:, expected_value: nil, actual_value: nil, formatted: false) super end |
Instance Attribute Details
#actual ⇒ Object (readonly)
Returns the value of attribute actual
10 11 12 |
# File 'lib/varar/core/cell_diff.rb', line 10 def actual @actual end |
#actual_value ⇒ Object (readonly)
Returns the value of attribute actual_value
10 11 12 |
# File 'lib/varar/core/cell_diff.rb', line 10 def actual_value @actual_value end |
#column ⇒ Object (readonly)
Returns the value of attribute column
10 11 12 |
# File 'lib/varar/core/cell_diff.rb', line 10 def column @column end |
#expected ⇒ Object (readonly)
Returns the value of attribute expected
10 11 12 |
# File 'lib/varar/core/cell_diff.rb', line 10 def expected @expected end |
#expected_value ⇒ Object (readonly)
Returns the value of attribute expected_value
10 11 12 |
# File 'lib/varar/core/cell_diff.rb', line 10 def expected_value @expected_value end |
#formatted ⇒ Object (readonly)
Returns the value of attribute formatted
10 11 12 |
# File 'lib/varar/core/cell_diff.rb', line 10 def formatted @formatted end |
#ok ⇒ Object (readonly)
Returns the value of attribute ok
10 11 12 |
# File 'lib/varar/core/cell_diff.rb', line 10 def ok @ok end |
#span ⇒ Object (readonly)
Returns the value of attribute span
10 11 12 |
# File 'lib/varar/core/cell_diff.rb', line 10 def span @span end |