class DataMaps::Then::Convert

A then to convert values

@since 0.0.1

Attributes

converter[R]

Public Instance Methods

after_initialize() click to toggle source
# File lib/data_maps/then/convert.rb, line 9
def after_initialize
  @converter = DataMaps::Converter.create_from_map(option)
end
execute(data) click to toggle source

The execute method which returns the converted data

@param [mixed] data

# File lib/data_maps/then/convert.rb, line 16
def execute(data)
  converter.reduce(data) do |data, c|
    c.execute(data)
  end
end