Sha256: b658f21b66a583e984cd5d43cd0d0d4443fbd37adaf9f88efff7ddc37947179a
Contents?: true
Size: 643 Bytes
Versions: 1
Compression:
Stored size: 643 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, child_mappings: nil ) @mappings << KeyValueMappingRule.new( name, to: to, render_nil: render_nil, with: with, delegate: delegate, child_mappings: child_mappings, ) end alias map_element map end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
lutaml-model-0.3.1 | lib/lutaml/model/key_value_mapping.rb |