class Morfo::Actions::CalculationAction

Attributes

calculate_blk[R]
field[R]
from_field_path[R]

Public Class Methods

new(field, from_field_path, calculate_blk) click to toggle source
# File lib/morfo/actions.rb, line 31
def initialize field, from_field_path, calculate_blk
  @field = field
  @from_field_path = from_field_path
  @calculate_blk = calculate_blk
end

Public Instance Methods

execute(row) click to toggle source
# File lib/morfo/actions.rb, line 37
def execute row
  calculate_blk.call(row)
end