Sha256: 7fdd18bcdea9083570837dd721af1881ecb9b9f1304c58724390e5d015afb59b
Contents?: true
Size: 474 Bytes
Versions: 8
Compression:
Stored size: 474 Bytes
Contents
# frozen_string_literal: true module Fortnox module API module Mapper Array = lambda do |array| array.each_with_object([]) do |item, converted_array| name = Fortnox::API::Mapper::Base.canonical_name_sym(item) converted_array << Fortnox::API::Registry[name].call(item) end end Registry.register(:array, Fortnox::API::Mapper::Array) Registry.register(:labels, Fortnox::API::Mapper::Array) end end end
Version data entries
8 entries across 8 versions & 1 rubygems