lib/wolf_core/domain/value_object.rb
# frozen_string_literal: true module WolfCore class ValueObject < DomainObject def ==(other) return false unless other.is_a?(self.class) self.class.fields.each do |key| return false unless attributes[key] == other.attributes[key] end true end end end