Sha256: b160f17bc439de6477e66601159b74a94b5fe482f901e8b29a51663d557e28db
Contents?: true
Size: 569 Bytes
Versions: 3
Compression:
Stored size: 569 Bytes
Contents
# frozen_string_literal: true require "lutaml/model" module LocMods class Note < Lutaml::Model::Serializable attribute :content, :string attribute :display_label, :string attribute :type, :string attribute :id, :string attribute :script, :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.7 | lib/loc_mods/note.rb |
loc_mods-0.2.6 | lib/loc_mods/note.rb |
loc_mods-0.2.5 | lib/loc_mods/note.rb |