Sha256: 4c2a15592525e58e69fd2181dbeafcfed8e37d516248932518cf8cdb106f7994

Contents?: true

Size: 369 Bytes

Versions: 2

Compression:

Stored size: 369 Bytes

Contents

# encoding: utf-8

module ROM
  class Mapper

    # Abstract loader class
    #
    # @private
    class Loader
      include Concord::Public.new(:header, :model), Adamantium, AbstractType

      abstract_method :call

      # @api public
      def identity(tuple)
        header.keys.map { |key| tuple[key.name] }
      end

    end # Loader

  end # Mapper
end # ROM

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
rom-mapper-0.1.1 lib/rom/mapper/loader.rb
rom-mapper-0.1.0 lib/rom/mapper/loader.rb