Sha256: bdc37fef57cdcff2d4b3bcd1b434783b8c94d171093f9d891d9fe0b973098f6c

Contents?: true

Size: 582 Bytes

Versions: 53

Compression:

Stored size: 582 Bytes

Contents

module NdrImport
  # NdrImport::StandardMappings stores the standard mappings hash
  class StandardMappings
    # mappings are stored as a class level instance variable
    class << self
      # Gets the standard mappings
      def mappings
        if defined?(@standard_mappings)
          @standard_mappings
        else
          fail 'NdrImport::StandardMappings not configured!'
        end
      end

      # Sets the standard mappings
      def mappings=(hash)
        fail ArgumentError unless hash.is_a?(Hash)

        @standard_mappings = hash
      end
    end
  end
end

Version data entries

53 entries across 53 versions & 1 rubygems

Version Path
ndr_import-8.5.1 lib/ndr_import/standard_mappings.rb
ndr_import-8.5.0 lib/ndr_import/standard_mappings.rb
ndr_import-8.4.0 lib/ndr_import/standard_mappings.rb
ndr_import-8.3.0 lib/ndr_import/standard_mappings.rb
ndr_import-8.2.0 lib/ndr_import/standard_mappings.rb
ndr_import-8.1.0 lib/ndr_import/standard_mappings.rb
ndr_import-8.0.0 lib/ndr_import/standard_mappings.rb
ndr_import-7.0.0 lib/ndr_import/standard_mappings.rb
ndr_import-6.4.1 lib/ndr_import/standard_mappings.rb
ndr_import-6.4.0 lib/ndr_import/standard_mappings.rb
ndr_import-6.3.0 lib/ndr_import/standard_mappings.rb
ndr_import-6.2.0 lib/ndr_import/standard_mappings.rb
ndr_import-6.1.1 lib/ndr_import/standard_mappings.rb
ndr_import-6.1.0 lib/ndr_import/standard_mappings.rb
ndr_import-6.0.0 lib/ndr_import/standard_mappings.rb
ndr_import-5.1.0 lib/ndr_import/standard_mappings.rb
ndr_import-5.0.0 lib/ndr_import/standard_mappings.rb
ndr_import-4.1.4 lib/ndr_import/standard_mappings.rb
ndr_import-4.1.3 lib/ndr_import/standard_mappings.rb
ndr_import-4.1.2 lib/ndr_import/standard_mappings.rb