Sha256: 5d9ba0bfa44a9ab423f823a62a6284a70165f311df4b28e09e9663bcef529ecb

Contents?: true

Size: 651 Bytes

Versions: 1

Compression:

Stored size: 651 Bytes

Contents

# frozen_string_literal: true

module Niso
  module Jats
    class AbbrevJournalTitle < Lutaml::Model::Serializable
      attribute :content, :string
      attribute :abbrev_type, :string
      attribute :id, :string
      attribute :specific_use, :string
      attribute :lang, :string

      xml do
        root "abbrev-journal-title"

        map_content to: :content
        map_attribute "abbrev-type", to: :abbrev_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"
      end
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

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