Sha256: 87b48c01af197fd1ca8f649e878111744b07c5bafccd06cd888d341bd15463db

Contents?: true

Size: 450 Bytes

Versions: 1

Compression:

Stored size: 450 Bytes

Contents

# frozen_string_literal: true

module Niso
  module Jats
    class NameAlternatives < Lutaml::Model::Serializable
      attribute :id, :string
      attribute :name, Name, collection: true
      attribute :string_name, StringName, collection: true

      xml do
        root "name-alternatives"

        map_attribute "id", to: :id
        map_element "name", to: :name
        map_element "string-name", to: :string_name
      end
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
niso-jats-0.1.1 lib/niso/jats/name_alternatives.rb