Sha256: 996ac6287c33a55f7756a7c3464d82e327b99c89d5c2e913c1923a2ca74f2db7
Contents?: true
Size: 620 Bytes
Versions: 3
Compression:
Stored size: 620 Bytes
Contents
# frozen_string_literal: true require_relative "base_mapper" module LocMods class Note < BaseMapper attribute :content, Shale::Type::String attribute :display_label, Shale::Type::String attribute :type, Shale::Type::String attribute :id, Shale::Type::String attribute :script, Shale::Type::String xml do root "note" 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 "ID", to: :id map_attribute "script", to: :script end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
loc_mods-0.2.4 | lib/loc_mods/note.rb |
loc_mods-0.2.3 | lib/loc_mods/note.rb |
loc_mods-0.2.2 | lib/loc_mods/note.rb |