class Topographer::Importer::Mapper::Result
Attributes
data[R]
errors[R]
source_identifier[R]
Public Class Methods
new(source_identifier)
click to toggle source
# File lib/topographer/importer/mapper/result.rb, line 7 def initialize(source_identifier) @source_identifier = source_identifier @data = {} @errors = {} end
Public Instance Methods
add_data(key, value)
click to toggle source
# File lib/topographer/importer/mapper/result.rb, line 13 def add_data (key, value) @data[key] = value end
add_error(key, value)
click to toggle source
# File lib/topographer/importer/mapper/result.rb, line 17 def add_error (key, value) @errors[key] = value end
errors?()
click to toggle source
# File lib/topographer/importer/mapper/result.rb, line 21 def errors? errors.any? end