Sha256: ea6ff851834a50447e83d0803d19d7734448e9fa92006649f3c6393b53af29ec
Contents?: true
Size: 587 Bytes
Versions: 3
Compression:
Stored size: 587 Bytes
Contents
# frozen_string_literal: true require_relative "base_mapper" require_relative "record" module LocMods class Collection < BaseMapper attribute :mods, Record, collection: true attribute :schema_location, Shale::Type::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
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
loc_mods-0.2.4 | lib/loc_mods/collection.rb |
loc_mods-0.2.3 | lib/loc_mods/collection.rb |
loc_mods-0.2.2 | lib/loc_mods/collection.rb |