require "virtus" class Dorsale::CustomerVault::PersonData include Virtus.model def self.dump(obj) JSON.dump(obj.attributes) end def self.load(json_string) new JSON.parse(json_string.presence || "{}") end def self.methods_to_delegate instance_methods - Dorsale::CustomerVault::PersonData.instance_methods end end