Sha256: 2ca7bc6d2378139471c66af81aaf107ccf6abf53156e87812503aaf6faa98190

Contents?: true

Size: 592 Bytes

Versions: 100

Compression:

Stored size: 592 Bytes

Contents

require "yaml"

module CanvasSync
  module Processors
    # Base report processing class
    class ReportProcessor
      def mapping
        @mapping ||= begin
          mapping = YAML.load_file(File.join(__dir__, "model_mappings.yml")).deep_symbolize_keys!
          override_filepath = Rails.root.join("config/canvas_sync_provisioning_mapping.yml")

          if File.file?(override_filepath)
            override = YAML.load_file(override_filepath).deep_symbolize_keys!
            mapping = mapping.merge(override)
          end

          mapping
        end
      end
    end
  end
end

Version data entries

100 entries across 100 versions & 1 rubygems

Version Path
canvas_sync-0.10.3 lib/canvas_sync/processors/report_processor.rb
canvas_sync-0.10.2 lib/canvas_sync/processors/report_processor.rb
canvas_sync-0.10.0 lib/canvas_sync/processors/report_processor.rb
canvas_sync-0.9.4 lib/canvas_sync/processors/report_processor.rb
canvas_sync-0.9.3 lib/canvas_sync/processors/report_processor.rb
canvas_sync-0.9.2 lib/canvas_sync/processors/report_processor.rb
canvas_sync-0.9.1 lib/canvas_sync/processors/report_processor.rb
canvas_sync-0.9.0 lib/canvas_sync/processors/report_processor.rb
canvas_sync-0.8.4 lib/canvas_sync/processors/report_processor.rb
canvas_sync-0.8.3 lib/canvas_sync/processors/report_processor.rb
canvas_sync-0.8.2 lib/canvas_sync/processors/report_processor.rb
canvas_sync-0.8.1 lib/canvas_sync/processors/report_processor.rb
canvas_sync-0.8.0 lib/canvas_sync/processors/report_processor.rb
canvas_sync-0.7.3 lib/canvas_sync/processors/report_processor.rb
canvas_sync-0.7.2 lib/canvas_sync/processors/report_processor.rb
canvas_sync-0.7.1 lib/canvas_sync/processors/report_processor.rb
canvas_sync-0.7.0 lib/canvas_sync/processors/report_processor.rb
canvas_sync-0.6.4 lib/canvas_sync/processors/report_processor.rb
canvas_sync-0.6.3 lib/canvas_sync/processors/report_processor.rb
canvas_sync-0.6.2 lib/canvas_sync/processors/report_processor.rb