Sha256: b8b8be0255b179759f01d327516d85adb2ca768f1ec59d81d6a77d3d9aadfa00

Contents?: true

Size: 588 Bytes

Versions: 3

Compression:

Stored size: 588 Bytes

Contents

# frozen_string_literal: true

require "lutaml/model"

module LocMods
  # LocMods::StringPlusLanguagePlusAuthority
  class Occupation < Lutaml::Model::Serializable
    attribute :content, :string
    attribute :authority, :string
    attribute :authority_uri, :string
    attribute :value_uri, :string

    xml do
      root "occupation"
      namespace "http://www.loc.gov/mods/v3", nil

      map_content to: :content
      map_attribute "authority", to: :authority
      map_attribute "authorityURI", to: :authority_uri
      map_attribute "valueURI", to: :value_uri
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
loc_mods-0.2.7 lib/loc_mods/occupation.rb
loc_mods-0.2.6 lib/loc_mods/occupation.rb
loc_mods-0.2.5 lib/loc_mods/occupation.rb