Sha256: d53815382b60a41efa1d2857f795f318687368e3e298d0b8c771b038299e5869

Contents?: true

Size: 513 Bytes

Versions: 2

Compression:

Stored size: 513 Bytes

Contents

module Topographer
  class Importer
    class Mapper
      class Result
        attr_reader :data, :errors, :source_identifier

        def initialize(source_identifier)
          @source_identifier = source_identifier
          @data = {}
          @errors = {}
        end

        def add_data (key, value)
          @data[key] = value
        end

        def add_error (key, value)
          @errors[key] = value
        end

        def errors?
          errors.any?
        end
      end
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
topographer-0.0.9 lib/topographer/importer/mapper/result.rb
topographer-0.0.8 lib/topographer/importer/mapper/result.rb