Class: Oselvar::Var::Core::CellDiff

Inherits:
Data
  • Object
show all
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

Instance Method Summary collapse

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

#actualObject (readonly)

Returns the value of attribute actual

Returns:

  • (Object)

    the current value of actual



11
12
13
# File 'lib/oselvar/var/core/cell_diff.rb', line 11

def actual
  @actual
end

#actual_valueObject (readonly)

Returns the value of attribute actual_value

Returns:

  • (Object)

    the current value of actual_value



11
12
13
# File 'lib/oselvar/var/core/cell_diff.rb', line 11

def actual_value
  @actual_value
end

#columnObject (readonly)

Returns the value of attribute column

Returns:

  • (Object)

    the current value of column



11
12
13
# File 'lib/oselvar/var/core/cell_diff.rb', line 11

def column
  @column
end

#expectedObject (readonly)

Returns the value of attribute expected

Returns:

  • (Object)

    the current value of expected



11
12
13
# File 'lib/oselvar/var/core/cell_diff.rb', line 11

def expected
  @expected
end

#expected_valueObject (readonly)

Returns the value of attribute expected_value

Returns:

  • (Object)

    the current value of expected_value



11
12
13
# File 'lib/oselvar/var/core/cell_diff.rb', line 11

def expected_value
  @expected_value
end

#formattedObject (readonly)

Returns the value of attribute formatted

Returns:

  • (Object)

    the current value of formatted



11
12
13
# File 'lib/oselvar/var/core/cell_diff.rb', line 11

def formatted
  @formatted
end

#okObject (readonly)

Returns the value of attribute ok

Returns:

  • (Object)

    the current value of ok



11
12
13
# File 'lib/oselvar/var/core/cell_diff.rb', line 11

def ok
  @ok
end

#spanObject (readonly)

Returns the value of attribute span

Returns:

  • (Object)

    the current value of span



11
12
13
# File 'lib/oselvar/var/core/cell_diff.rb', line 11

def span
  @span
end