lib/loc_mods/form.rb in loc_mods-0.2.4 vs lib/loc_mods/form.rb in loc_mods-0.2.5

- old
+ new

@@ -1,13 +1,13 @@ # frozen_string_literal: true -require_relative "base_mapper" +require "lutaml/model" module LocMods - class Form < BaseMapper - attribute :content, Shale::Type::String - attribute :type, Shale::Type::String - attribute :authority, Shale::Type::String + class Form < Lutaml::Model::Serializable + attribute :content, :string + attribute :type, :string + attribute :authority, :string xml do root "form" namespace "http://www.loc.gov/mods/v3", nil