Sha256: 5ffd221ba748b810ef035ed5b1f26bba1584468882b8ae37c2fbdf4a6f96f683

Contents?: true

Size: 800 Bytes

Versions: 1

Compression:

Stored size: 800 Bytes

Contents

# frozen_string_literal: true

module Niso
  module Jats
    class PrivateChar < Lutaml::Model::Serializable
      attribute :description, :string
      attribute :id, :string
      attribute :name, :string
      attribute :specific_use, :string
      attribute :glyph_data, GlyphData
      attribute :glyph_ref, GlyphRef
      attribute :inline_graphic, InlineGraphic, collection: true

      xml do
        root "private-char"

        map_attribute "description", to: :description
        map_attribute "id", to: :id
        map_attribute "name", to: :name
        map_attribute "specific-use", to: :specific_use
        map_element "glyph-data", to: :glyph_data
        map_element "glyph-ref", to: :glyph_ref
        map_element "inline-graphic", to: :inline_graphic
      end
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

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