lib/loc_mods/detail.rb in loc_mods-0.2.4 vs lib/loc_mods/detail.rb in loc_mods-0.2.5
- old
+ new
@@ -1,15 +1,15 @@
# frozen_string_literal: true
-require_relative "base_mapper"
+require "lutaml/model"
module LocMods
- class Detail < BaseMapper
- attribute :type, Shale::Type::String
- attribute :level, Shale::Type::Integer
- attribute :number, Shale::Type::String, collection: true
- attribute :caption, Shale::Type::String, collection: true
- attribute :title, Shale::Type::String, collection: true
+ class Detail < Lutaml::Model::Serializable
+ attribute :type, :string
+ attribute :level, :integer
+ attribute :number, :string, collection: true
+ attribute :caption, :string, collection: true
+ attribute :title, :string, collection: true
xml do
root "detail"
namespace "http://www.loc.gov/mods/v3", nil