Sha256: bda6d30ad8006a92979168c8c3d9ed0c13a71dd7210058db03de45f8b73d3dfe

Contents?: true

Size: 1.09 KB

Versions: 1

Compression:

Stored size: 1.09 KB

Contents

# frozen_string_literal: true

module Niso
  module Jats
    class Back < Lutaml::Model::Serializable
      attribute :id, :string
      attribute :label, Label
      attribute :title, Title, collection: true
      attribute :ack, Ack, collection: true
      attribute :app_group, AppGroup, collection: true
      attribute :bio, Bio, collection: true
      attribute :fn_group, FnGroup, collection: true
      attribute :glossary, Glossary, collection: true
      attribute :ref_list, RefList, collection: true
      attribute :notes, Notes, collection: true
      attribute :sec, Sec, collection: true

      xml do
        root "back"

        map_attribute "id", to: :id
        map_element "label", to: :label
        map_element "title", to: :title
        map_element "ack", to: :ack
        map_element "app-group", to: :app_group
        map_element "bio", to: :bio
        map_element "ref-list", to: :ref_list
        map_element "fn-group", to: :fn_group
        map_element "glossary", to: :glossary
        map_element "notes", to: :notes
        map_element "sec", to: :sec
      end
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

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