Sha256: 25ae1657e5d8f81b8d70dc22b3dc2136aafac81263c785a5cd4884f9123ec677

Contents?: true

Size: 931 Bytes

Versions: 1

Compression:

Stored size: 931 Bytes

Contents

# frozen_string_literal: true

module Niso
  module Jats
    class IssueTitleGroup < Lutaml::Model::Serializable
      attribute :content_type, :string
      attribute :id, :string
      attribute :specific_use, :string
      attribute :lang, :string
      attribute :issue_title, IssueTitle
      attribute :issue_subtitle, IssueSubtitle, collection: true
      attribute :trans_title_group, TransTitleGroup, collection: true

      xml do
        root "issue-title-group"

        map_attribute "content-type", to: :content_type
        map_attribute "id", to: :id
        map_attribute "specific-use", to: :specific_use
        map_attribute "lang", to: :lang, namespace: "http://www.w3.org/XML/1998/namespace", prefix: "xml"
        map_element "issue-title", to: :issue_title
        map_element "issue-subtitle", to: :issue_subtitle
        map_element "trans-title-group", to: :trans_title_group
      end
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

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