Codeminer42/cm42-central

View on GitHub
lib/exporters/default.rb

Summary

Maintainability
A
0 mins
Test Coverage
# frozen_string_literal: true

module Exporters
  class Default
    attr_reader :collection

    def initialize(collection = [])
      @collection = collection
    end

    def generate
      raise NotImplementedError
    end

    class << self
      def content(collection)
        new(collection).generate
      end

      def filename
        'export.csv'
      end
    end
  end
end