Sha256: e3c505981df198db5279e50affc05cce8bb67d7c5593c6ee82d250af1c99abed

Contents?: true

Size: 994 Bytes

Versions: 1

Compression:

Stored size: 994 Bytes

Contents

# frozen_string_literal: true

module Niso
  module Jats
    class RestrictedBy < Lutaml::Model::Serializable
      attribute :content, :string
      attribute :assigning_authority, :string
      attribute :designator, :string
      attribute :hreflang, :string
      attribute :id, :string
      attribute :vocab, :string
      attribute :vocab_identifier, :string
      attribute :vocab_term, :string
      attribute :vocab_term_identifier, :string

      xml do
        root "restricted-by"

        map_content to: :content
        map_attribute "assigning-authority", to: :assigning_authority
        map_attribute "designator", to: :designator
        map_attribute "hreflang", to: :hreflang
        map_attribute "id", to: :id
        map_attribute "vocab", to: :vocab
        map_attribute "vocab-identifier", to: :vocab_identifier
        map_attribute "vocab-term", to: :vocab_term
        map_attribute "vocab-term-identifier", to: :vocab_term_identifier
      end
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

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