Exception: NdrImport::UnmappedDataError

Inherits:
StandardError
  • Object
show all
Defined in:
lib/ndr_import/unmapped_data_error.rb

Overview

Raised if incoming data has not been mapped.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(keys) ⇒ UnmappedDataError

Returns a new instance of UnmappedDataError.



8
9
10
11
12
# File 'lib/ndr_import/unmapped_data_error.rb', line 8

def initialize(keys)
  @keys = keys
  message = "Unmapped data: #{keys.to_sentence}"
  super(message)
end

Instance Attribute Details

#keysObject (readonly)

Returns the value of attribute keys.



6
7
8
# File 'lib/ndr_import/unmapped_data_error.rb', line 6

def keys
  @keys
end