Sha256: 0afbfe8dd860a4b6895784a9a224915428be56f4c0f96490097d575ef83dee60
Contents?: true
Size: 745 Bytes
Versions: 4
Compression:
Stored size: 745 Bytes
Contents
require "lutaml/model" require_relative "person" class Address < Lutaml::Model::Serializable attribute :country, Lutaml::Model::Type::String attribute :post_code, Lutaml::Model::Type::String attribute :person, Person, collection: true json do map "country", to: :country map "postCode", to: :post_code map "person", to: :person end xml do root "Address" map_element "Country", to: :country map_element "PostCode", to: :post_code map_element "Person", to: :person end yaml do map "country", to: :country map "postCode", to: :post_code map "person", to: :person end toml do map "country", to: :country map "post_code", to: :post_code map "person", to: :person end end
Version data entries
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
lutaml-model-0.3.28 | spec/fixtures/address.rb |
lutaml-model-0.3.27 | spec/fixtures/address.rb |
lutaml-model-0.3.26 | spec/fixtures/address.rb |
lutaml-model-0.3.25 | spec/fixtures/address.rb |