Sha256: 66bfee58eb5f3c5b15d1ee97a066c6a921a075d8689ae3a249a91357acf2d83f
Contents?: true
Size: 584 Bytes
Versions: 1
Compression:
Stored size: 584 Bytes
Contents
# frozen_string_literal: true require "lutaml/model" require_relative "record" module LocMods class Collection < Lutaml::Model::Serializable attribute :mods, Record, collection: true attribute :schema_location, :string xml do root "modsCollection" namespace "http://www.loc.gov/mods/v3", nil map_attribute "schemaLocation", to: :schema_location, namespace: "http://www.w3.org/2001/XMLSchema-instance", prefix: "xsi" map_element "mods", to: :mods end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
loc_mods-0.2.5 | lib/loc_mods/collection.rb |