Sha256: 45228a82ef1814ad5de7777f4d666f294eed0876edc672759d95b94b20eebc6c
Contents?: true
Size: 435 Bytes
Versions: 1
Compression:
Stored size: 435 Bytes
Contents
# frozen_string_literal: true require "lutaml/model" module LocMods class Text < Lutaml::Model::Serializable attribute :content, :string attribute :display_label, :string attribute :type, :string xml do root "text" namespace "http://www.loc.gov/mods/v3", nil map_content to: :content map_attribute "displayLabel", to: :display_label map_attribute "type", to: :type end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
loc_mods-0.2.5 | lib/loc_mods/text.rb |