module Salesforce module Attributes extend ActiveSupport::Concern def assign_attributes!(hash) hash.each do |key, value| send("#{key}=", value) if respond_to?("#{key}=") end end end end