Sha256: 1c71e9ffa58ba4b7fba34c09d0e70df7dc1e6fc0bd0d77a7aa0aceeb7e96c906

Contents?: true

Size: 883 Bytes

Versions: 1

Compression:

Stored size: 883 Bytes

Contents

# frozen_string_literal: true

module Niso
  module Jats
    class JournalTitleGroup < Lutaml::Model::Serializable
      attribute :content_type, :string
      attribute :id, :string
      attribute :journal_title, JournalTitle, collection: true
      attribute :journal_subtitle, JournalSubtitle, collection: true
      attribute :trans_title_group, TransTitleGroup, collection: true
      attribute :abbrev_journal_title, AbbrevJournalTitle, collection: true

      xml do
        root "journal-title-group"

        map_attribute "content-type", to: :content_type
        map_attribute "id", to: :id
        map_element "journal-title", to: :journal_title
        map_element "journal-subtitle", to: :journal_subtitle
        map_element "trans-title-group", to: :trans_title_group
        map_element "abbrev-journal-title", to: :abbrev_journal_title
      end
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

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