Class: ArrayTransform::Operations::UpdateRow

Inherits:
Object
  • Object
show all
Includes:
Callable
Defined in:
lib/array_transform/operations/update_row.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Callable

included

Constructor Details

#initialize(cell_operation:, data:, row_offset: 0) ⇒ UpdateRow



6
7
8
9
10
11
12
13
14
# File 'lib/array_transform/operations/update_row.rb', line 6

def initialize(
  cell_operation:,
  data:,
  row_offset: 0
)
  @cell_operation = cell_operation
  @data = data
  @row_offset = row_offset
end

Instance Attribute Details

#dataObject (readonly)

Returns the value of attribute data.



16
17
18
# File 'lib/array_transform/operations/update_row.rb', line 16

def data
  @data
end

Instance Method Details

#callObject



18
19
20
# File 'lib/array_transform/operations/update_row.rb', line 18

def call
  modify_row
end