Sha256: ebd1c6f05008fafa3e5c1cb0ca88b326efb9d6fa63cdc9a67dcfb4028227243a

Contents?: true

Size: 615 Bytes

Versions: 1

Compression:

Stored size: 615 Bytes

Contents

# frozen_string_literal: true

module Niso
  module Jats
    class DefItem < Lutaml::Model::Serializable
      attribute :id, :string
      attribute :specific_use, :string
      attribute :lang, :string
      attribute :term, Term
      attribute :def, Def, collection: true

      xml do
        root "def-item"

        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 "term", to: :term
        map_element "def", to: :def
      end
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

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