Sha256: cf5c72dfe8e2d8d7797359c0990277575c61734f621a6a3d55a04c3460cffe97

Contents?: true

Size: 982 Bytes

Versions: 1

Compression:

Stored size: 982 Bytes

Contents

# frozen_string_literal: true

module Niso
  module Jats
    class CompoundKwd < Lutaml::Model::Serializable
      attribute :assigning_authority, :string
      attribute :content_type, :string
      attribute :id, :string
      attribute :vocab, :string
      attribute :vocab_identifier, :string
      attribute :vocab_term, :string
      attribute :vocab_term_identifier, :string
      attribute :compound_kwd_part, CompoundKwdPart, collection: true

      xml do
        root "compound-kwd"

        map_attribute "assigning-authority", to: :assigning_authority
        map_attribute "content-type", to: :content_type
        map_attribute "id", to: :id
        map_attribute "vocab", to: :vocab
        map_attribute "vocab-identifier", to: :vocab_identifier
        map_attribute "vocab-term", to: :vocab_term
        map_attribute "vocab-term-identifier", to: :vocab_term_identifier
        map_element "compound-kwd-part", to: :compound_kwd_part
      end
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

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