Class: ArrayTransform::Operations::AddColumn
- Inherits:
-
Object
- Object
- ArrayTransform::Operations::AddColumn
- Includes:
- Callable
- Defined in:
- lib/array_transform/operations/add_column.rb
Instance Attribute Summary collapse
-
#data ⇒ Object
readonly
Returns the value of attribute data.
Instance Method Summary collapse
- #call ⇒ Object
-
#initialize(cell_operation:, data:, new_column_header: nil) ⇒ AddColumn
constructor
A new instance of AddColumn.
Methods included from Callable
Constructor Details
#initialize(cell_operation:, data:, new_column_header: nil) ⇒ AddColumn
Returns a new instance of AddColumn.
6 7 8 9 10 11 12 13 14 |
# File 'lib/array_transform/operations/add_column.rb', line 6 def initialize( cell_operation:, data:, new_column_header: nil ) @cell_operation = cell_operation @data = data @new_column_header = new_column_header end |
Instance Attribute Details
#data ⇒ Object (readonly)
Returns the value of attribute data.
16 17 18 |
# File 'lib/array_transform/operations/add_column.rb', line 16 def data @data end |
Instance Method Details
#call ⇒ Object
18 19 20 |
# File 'lib/array_transform/operations/add_column.rb', line 18 def call add_column end |