Sha256: 4520020ae02e900eb8a4596145bff2f18947faf62874a74050211215c8f2d607
Contents?: true
Size: 463 Bytes
Versions: 1
Compression:
Stored size: 463 Bytes
Contents
# lib/lutaml/model/key_value_mapping.rb require_relative "key_value_mapping_rule" module Lutaml module Model class KeyValueMapping attr_reader :mappings def initialize @mappings = [] end def map(name, to:, render_nil: false, with: {}, delegate: nil) @mappings << KeyValueMappingRule.new(name, to: to, render_nil: render_nil, with: with, delegate: delegate) end alias map_element map end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
lutaml-model-0.1.0 | lib/lutaml/model/key_value_mapping.rb |