Sha256: 50dfe7c78feb3b89bbde840b18fce4fbb84a665c9f5678b6a98af0b959462255

Contents?: true

Size: 590 Bytes

Versions: 1

Compression:

Stored size: 590 Bytes

Contents

# frozen_string_literal: true

module Niso
  module Jats
    class ArticleCategories < Lutaml::Model::Serializable
      attribute :id, :string
      attribute :subj_group, SubjGroup, collection: true
      attribute :series_title, SeriesTitle, collection: true
      attribute :series_text, SeriesText, collection: true

      xml do
        root "article-categories"

        map_attribute "id", to: :id
        map_element "subj-group", to: :subj_group
        map_element "series-title", to: :series_title
        map_element "series-text", to: :series_text
      end
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

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