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-11.2.1 lib/ndr_import/standard_mappings.rb
ndr_import-11.2.0 lib/ndr_import/standard_mappings.rb
ndr_import-11.1.0 lib/ndr_import/standard_mappings.rb
ndr_import-11.0.2 lib/ndr_import/standard_mappings.rb
ndr_import-11.0.1 lib/ndr_import/standard_mappings.rb
ndr_import-11.0.0 lib/ndr_import/standard_mappings.rb
ndr_import-10.3.0 lib/ndr_import/standard_mappings.rb
ndr_import-10.2.0 lib/ndr_import/standard_mappings.rb
ndr_import-10.1.3 lib/ndr_import/standard_mappings.rb
ndr_import-10.1.2 lib/ndr_import/standard_mappings.rb
ndr_import-10.1.1 lib/ndr_import/standard_mappings.rb
ndr_import-10.1 lib/ndr_import/standard_mappings.rb
ndr_import-10.0 lib/ndr_import/standard_mappings.rb
ndr_import-9.1.0 lib/ndr_import/standard_mappings.rb
ndr_import-9.0.3 lib/ndr_import/standard_mappings.rb
ndr_import-9.0.2 lib/ndr_import/standard_mappings.rb
ndr_import-9.0.1 lib/ndr_import/standard_mappings.rb
ndr_import-9.0.0 lib/ndr_import/standard_mappings.rb
ndr_import-8.6.0 lib/ndr_import/standard_mappings.rb
ndr_import-8.5.2 lib/ndr_import/standard_mappings.rb