module Excelsieur::Mapping::ClassMethods

Attributes

fields[R]

Public Instance Methods

map(header, options = {}) click to toggle source
# File lib/excelsieur/mapping.rb, line 12
def map(header, options = {})
  @fields ||= []
  @fields << {
    attribute: options.fetch(:to),
    header: header
  }
end