Sha256: 66d2dc9b3f0746e234b9df7fc1e96415661dc9c66fd27f3194645d04c48e1814
Contents?: true
Size: 1.12 KB
Versions: 1
Compression:
Stored size: 1.12 KB
Contents
# frozen_string_literal: true require "lutaml/model" require_relative "enumeration_and_chronology" require_relative "form" require_relative "item_identifier" require_relative "note" module LocMods class CopyInformation < Lutaml::Model::Serializable attribute :form, Form attribute :sub_location, :string, collection: true attribute :shelf_locator, :string, collection: true attribute :electronic_locator, :string, collection: true attribute :note, Note, collection: true attribute :enumeration_and_chronology, EnumerationAndChronology, collection: true attribute :item_identifier, ItemIdentifier, collection: true xml do root "copyInformation" namespace "http://www.loc.gov/mods/v3", nil map_element "form", to: :form map_element "subLocation", to: :sub_location map_element "shelfLocator", to: :shelf_locator map_element "electronicLocator", to: :electronic_locator map_element "note", to: :note map_element "enumerationAndChronology", to: :enumeration_and_chronology map_element "itemIdentifier", to: :item_identifier end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
loc_mods-0.2.5 | lib/loc_mods/copy_information.rb |