Sha256: 997952c0238f31744795811452e11eb21aae5975404f17d650fed65dfa6f3445
Contents?: true
Size: 569 Bytes
Versions: 8
Compression:
Stored size: 569 Bytes
Contents
# Copyright:: (c) Autotelik Media Ltd 2011 # Author :: Tom Statter # Date :: Aug 2011 # License:: MIT # # Details:: Export a model to CSV # # require 'generator_base' module DataShift class CsvGenerator < GeneratorBase def initialize(filename) super(filename) end # Create CSV file representing supplied Model def generate(model, options = {}) @filename = options[:filename] if options[:filename] end # Create an Csv file representing supplied Model def export(items, options = {}) end end end
Version data entries
8 entries across 8 versions & 1 rubygems