Class: NdrImport::StandardMappings
- Inherits:
-
Object
- Object
- NdrImport::StandardMappings
- Defined in:
- lib/ndr_import/standard_mappings.rb
Overview
NdrImport::StandardMappings stores the standard mappings hash
Class Method Summary collapse
-
.mappings ⇒ Object
Gets the standard mappings.
-
.mappings=(hash) ⇒ Object
Sets the standard mappings.
Class Method Details
.mappings ⇒ Object
Gets the standard mappings
7 8 9 10 11 12 13 |
# 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) ⇒ Object
Sets the standard mappings
16 17 18 19 20 |
# File 'lib/ndr_import/standard_mappings.rb', line 16 def mappings=(hash) fail ArgumentError unless hash.is_a?(Hash) @standard_mappings = hash end |