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