Sha256: afd0bb2571b2ef9ea57170c5f93920a36db664de38b6bb0804fb19eda5fe6e14
Contents?: true
Size: 1.34 KB
Versions: 1
Compression:
Stored size: 1.34 KB
Contents
# frozen_string_literal: true module Niso module Jats class Speaker < Lutaml::Model::Serializable attribute :content, :string attribute :content_type, :string attribute :id, :string attribute :specific_use, :string attribute :lang, :string attribute :degrees, Degrees, collection: true attribute :given_names, GivenNames, collection: true attribute :prefix, Prefix, collection: true attribute :surname, Surname, collection: true attribute :suffix, Suffix, collection: true attribute :fn, Fn, collection: true attribute :target, Target, collection: true attribute :xref, Xref, collection: true xml do root "speaker" map_content to: :content 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 "degrees", to: :degrees map_element "given-names", to: :given_names map_element "prefix", to: :prefix map_element "surname", to: :surname map_element "suffix", to: :suffix map_element "fn", to: :fn map_element "target", to: :target map_element "xref", to: :xref end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
niso-jats-0.1.1 | lib/niso/jats/speaker.rb |