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

- old
+ new

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