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.6.1 lib/canvas_sync/processors/report_processor.rb
canvas_sync-0.6.0 lib/canvas_sync/processors/report_processor.rb
canvas_sync-0.5.4 lib/canvas_sync/processors/report_processor.rb
canvas_sync-0.5.3 lib/canvas_sync/processors/report_processor.rb
canvas_sync-0.5.2 lib/canvas_sync/processors/report_processor.rb
canvas_sync-0.5.1 lib/canvas_sync/processors/report_processor.rb
canvas_sync-0.4.1 lib/canvas_sync/processors/report_processor.rb
canvas_sync-0.4.0 lib/canvas_sync/processors/report_processor.rb
canvas_sync-0.3.23 lib/canvas_sync/processors/report_processor.rb
canvas_sync-0.3.22 lib/canvas_sync/processors/report_processor.rb
canvas_sync-0.3.21 lib/canvas_sync/processors/report_processor.rb
canvas_sync-0.3.20 lib/canvas_sync/processors/report_processor.rb
canvas_sync-0.3.19 lib/canvas_sync/processors/report_processor.rb
canvas_sync-0.3.18 lib/canvas_sync/processors/report_processor.rb
canvas_sync-0.3.17 lib/canvas_sync/processors/report_processor.rb
canvas_sync-0.3.16 lib/canvas_sync/processors/report_processor.rb
canvas_sync-0.3.15 lib/canvas_sync/processors/report_processor.rb
canvas_sync-0.3.14 lib/canvas_sync/processors/report_processor.rb
canvas_sync-0.3.13 lib/canvas_sync/processors/report_processor.rb
canvas_sync-0.3.12 lib/canvas_sync/processors/report_processor.rb