Module: Macros::NumismaticCsv

Defined in:
lib/macros/numismatic_csv.rb

Overview

Macros for extracting values from CSV rows

Instance Method Summary collapse

Instance Method Details

#provider_departmentObject


6
7
8
9
10
# File 'lib/macros/numismatic_csv.rb', line 6

def provider_department
  lambda do |row, accumulator, context|
    accumulator << "#{row['Department']} Department, #{context.output_hash['agg_provider'].first}"
  end
end