Sha256: 8e0604ed54605f00ca9d12e0990fe54bf3396e9fbe29b1fc021f55c559320076
Contents?: true
Size: 1.22 KB
Versions: 1
Compression:
Stored size: 1.22 KB
Contents
# frozen_string_literal: true module Niso module Jats class Article < Lutaml::Model::Serializable attribute :article_type, :string attribute :dtd_version, :string attribute :id, :string attribute :specific_use, :string attribute :lang, :string, default: -> { "en" } attribute :processing_meta, ProcessingMeta attribute :front, Front attribute :body, Body attribute :back, Back attribute :floats_group, FloatsGroup attribute :sub_article, SubArticle, collection: true attribute :response, Response, collection: true xml do root "article" map_attribute "article-type", to: :article_type map_attribute "dtd-version", to: :dtd_version map_attribute "id", to: :id map_attribute "specific-use", to: :specific_use map_attribute "lang", to: :lang, render_default: true map_element "processing-meta", to: :processing_meta map_element "front", to: :front map_element "body", to: :body map_element "back", to: :back map_element "floats-group", to: :floats_group map_element "sub-article", to: :sub_article map_element "response", to: :response 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.rb |