class NdrImport::StandardMappings

NdrImport::StandardMappings stores the standard mappings hash

Public Class Methods

mappings() click to toggle source

Gets the standard mappings

# File lib/ndr_import/standard_mappings.rb, line 7
def mappings
  if defined?(@standard_mappings)
    @standard_mappings
  else
    fail 'NdrImport::StandardMappings not configured!'
  end
end
mappings=(hash) click to toggle source

Sets the standard mappings

# File lib/ndr_import/standard_mappings.rb, line 16
def mappings=(hash)
  fail ArgumentError unless hash.is_a?(Hash)

  @standard_mappings = hash
end