Sha256: eea73f5acafd9cdb6c9ded044876516270ff331b16b2af4b92386a9e32875d7c

Contents?: true

Size: 1.22 KB

Versions: 1

Compression:

Stored size: 1.22 KB

Contents

# frozen_string_literal: true

module Niso
  module Jats
    class PrincipalAwardRecipient < Lutaml::Model::Serializable
      attribute :content, :string
      attribute :id, :string
      attribute :specific_use, :string
      attribute :lang, :string
      attribute :contrib_id, ContribId, collection: true
      attribute :name, Name, collection: true
      attribute :name_alternatives, NameAlternatives, collection: true
      attribute :institution, Institution, collection: true
      attribute :institution_wrap, InstitutionWrap, collection: true
      attribute :string_name, StringName, collection: true

      xml do
        root "principal-award-recipient"

        map_content to: :content
        map_attribute "id", to: :id
        map_attribute "specific-use", to: :specific_use
        map_attribute "lang", to: :lang, namespace: "http://www.w3.org/XML/1998/namespace", prefix: "xml"
        map_element "contrib-id", to: :contrib_id
        map_element "name", to: :name
        map_element "name-alternatives", to: :name_alternatives
        map_element "institution", to: :institution
        map_element "institution-wrap", to: :institution_wrap
        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/principal_award_recipient.rb