Sha256: 98fc18c6ce0955be9f6dd279a09a88e4efafbf378f473b759457755448980e19

Contents?: true

Size: 612 Bytes

Versions: 3

Compression:

Stored size: 612 Bytes

Contents

# frozen_string_literal: true

require "lutaml/model"

module LocMods
  class PhysicalDescriptionNote < Lutaml::Model::Serializable
    attribute :content, :string
    attribute :display_label, :string
    attribute :type, :string
    attribute :type_uri, :string
    attribute :id, :string

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

      map_content to: :content
      map_attribute "displayLabel", to: :display_label
      map_attribute "type", to: :type
      map_attribute "typeURI", to: :type_uri
      map_attribute "ID", to: :id
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

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