Class: Cure::Transformation::RowCtx

Inherits:
Object
  • Object
show all
Defined in:
lib/cure/transformation/transform.rb

Overview

This class looks useless, but it isn’t. It exists purely to give a hook to add more stuff to a strategy in the future without the method signature changing

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(row, original_row: nil) ⇒ RowCtx

Returns a new instance of RowCtx.



57
58
59
60
# File 'lib/cure/transformation/transform.rb', line 57

def initialize(row, original_row: nil)
  @row = row
  @original_row = original_row
end

Instance Attribute Details

#original_rowObject

Returns the value of attribute original_row.



55
56
57
# File 'lib/cure/transformation/transform.rb', line 55

def original_row
  @original_row
end

#rowObject

Returns the value of attribute row.



55
56
57
# File 'lib/cure/transformation/transform.rb', line 55

def row
  @row
end