Class: Varar::Core::CellDiff

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

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.



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

#actualObject (readonly)

Returns the value of attribute actual

Returns:

  • (Object)

    the current value of actual



10
11
12
# File 'lib/varar/core/cell_diff.rb', line 10

def actual
  @actual
end

#actual_valueObject (readonly)

Returns the value of attribute actual_value

Returns:

  • (Object)

    the current value of actual_value



10
11
12
# File 'lib/varar/core/cell_diff.rb', line 10

def actual_value
  @actual_value
end

#columnObject (readonly)

Returns the value of attribute column

Returns:

  • (Object)

    the current value of column



10
11
12
# File 'lib/varar/core/cell_diff.rb', line 10

def column
  @column
end

#expectedObject (readonly)

Returns the value of attribute expected

Returns:

  • (Object)

    the current value of expected



10
11
12
# File 'lib/varar/core/cell_diff.rb', line 10

def expected
  @expected
end

#expected_valueObject (readonly)

Returns the value of attribute expected_value

Returns:

  • (Object)

    the current value of expected_value



10
11
12
# File 'lib/varar/core/cell_diff.rb', line 10

def expected_value
  @expected_value
end

#formattedObject (readonly)

Returns the value of attribute formatted

Returns:

  • (Object)

    the current value of formatted



10
11
12
# File 'lib/varar/core/cell_diff.rb', line 10

def formatted
  @formatted
end

#okObject (readonly)

Returns the value of attribute ok

Returns:

  • (Object)

    the current value of ok



10
11
12
# File 'lib/varar/core/cell_diff.rb', line 10

def ok
  @ok
end

#spanObject (readonly)

Returns the value of attribute span

Returns:

  • (Object)

    the current value of span



10
11
12
# File 'lib/varar/core/cell_diff.rb', line 10

def span
  @span
end