Class: Oselvar::Var::Core::CellDiff
- Inherits:
-
Data
- Object
- Data
- Oselvar::Var::Core::CellDiff
- Defined in:
- lib/oselvar/var/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.
13 14 15 16 |
# File 'lib/oselvar/var/core/cell_diff.rb', line 13 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
11 12 13 |
# File 'lib/oselvar/var/core/cell_diff.rb', line 11 def actual @actual end |
#actual_value ⇒ Object (readonly)
Returns the value of attribute actual_value
11 12 13 |
# File 'lib/oselvar/var/core/cell_diff.rb', line 11 def actual_value @actual_value end |
#column ⇒ Object (readonly)
Returns the value of attribute column
11 12 13 |
# File 'lib/oselvar/var/core/cell_diff.rb', line 11 def column @column end |
#expected ⇒ Object (readonly)
Returns the value of attribute expected
11 12 13 |
# File 'lib/oselvar/var/core/cell_diff.rb', line 11 def expected @expected end |
#expected_value ⇒ Object (readonly)
Returns the value of attribute expected_value
11 12 13 |
# File 'lib/oselvar/var/core/cell_diff.rb', line 11 def expected_value @expected_value end |
#formatted ⇒ Object (readonly)
Returns the value of attribute formatted
11 12 13 |
# File 'lib/oselvar/var/core/cell_diff.rb', line 11 def formatted @formatted end |
#ok ⇒ Object (readonly)
Returns the value of attribute ok
11 12 13 |
# File 'lib/oselvar/var/core/cell_diff.rb', line 11 def ok @ok end |
#span ⇒ Object (readonly)
Returns the value of attribute span
11 12 13 |
# File 'lib/oselvar/var/core/cell_diff.rb', line 11 def span @span end |