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-4.1.1 lib/ndr_import/standard_mappings.rb
ndr_import-4.1.0 lib/ndr_import/standard_mappings.rb
ndr_import-4.0.1 lib/ndr_import/standard_mappings.rb
ndr_import-4.0.0 lib/ndr_import/standard_mappings.rb
ndr_import-3.1.6 lib/ndr_import/standard_mappings.rb
ndr_import-3.1.5 lib/ndr_import/standard_mappings.rb
ndr_import-3.1.4 lib/ndr_import/standard_mappings.rb
ndr_import-3.1.3 lib/ndr_import/standard_mappings.rb
ndr_import-3.1.2 lib/ndr_import/standard_mappings.rb
ndr_import-3.1.1 lib/ndr_import/standard_mappings.rb
ndr_import-3.1.0 lib/ndr_import/standard_mappings.rb
ndr_import-3.0.1 lib/ndr_import/standard_mappings.rb
ndr_import-3.0.0 lib/ndr_import/standard_mappings.rb