def custom_fields_basic_attributes
      {}.tap do |hash|
        self.non_relationship_custom_fields.each do |rule|
          name, type = rule['name'], rule['type'].to_sym

          # method of the custom getter
          method_name = "#{type}_attribute_get"

          hash.merge!(self.class.send(method_name, self, name))
        end
      end
    end
def custom_fields_basic_attributes
      {}.tap do |hash|
        self.non_relationship_custom_fields.each do |rule|
          name, type = rule['name'], rule['type'].to_sym

          # method of the custom getter
          method_name = "#{type}_attribute_get"

          hash.merge!(self.class.send(method_name, self, name))
        end
      end
    end
Build a hash for all the non-relationship fields
 meaning string, text, date, boolean, select, file types.
 This hash stores their name and their value.

 @return [ Hash ] Field name / formatted value