Sha256: 1ab69ec1a021cdbc88920b9b63a492feb68a8a5d79c4a23596c3341906c048bd

Contents?: true

Size: 794 Bytes

Versions: 1

Compression:

Stored size: 794 Bytes

Contents

# frozen_string_literal: true

module Niso
  module Jats
    class GlyphData < Lutaml::Model::Serializable
      attribute :content, :string
      attribute :fontchar, :string
      attribute :fontname, :string
      attribute :format, :string
      attribute :id, :string
      attribute :resolution, :string
      attribute :x_size, :string
      attribute :y_size, :string

      xml do
        root "glyph-data"

        map_content to: :content
        map_attribute "fontchar", to: :fontchar
        map_attribute "fontname", to: :fontname
        map_attribute "format", to: :format
        map_attribute "id", to: :id
        map_attribute "resolution", to: :resolution
        map_attribute "x-size", to: :x_size
        map_attribute "y-size", to: :y_size
      end
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

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