Class: Cure::Transformation::RowCtx
- Inherits:
-
Object
- Object
- Cure::Transformation::RowCtx
- 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
-
#original_row ⇒ Object
Returns the value of attribute original_row.
-
#row ⇒ Object
Returns the value of attribute row.
Instance Method Summary collapse
-
#initialize(row, original_row: nil) ⇒ RowCtx
constructor
A new instance of RowCtx.
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_row ⇒ Object
Returns the value of attribute original_row.
55 56 57 |
# File 'lib/cure/transformation/transform.rb', line 55 def original_row @original_row end |
#row ⇒ Object
Returns the value of attribute row.
55 56 57 |
# File 'lib/cure/transformation/transform.rb', line 55 def row @row end |