Class: NamePerson

Inherits:
Sequel::Model
  • Object
show all
Includes:
ASModel, AgentNames, AutoGenerator, Representative
Defined in:
backend/app/model/name_person.rb

Constant Summary

Constants included from JSONModel

JSONModel::REFERENCE_KEY_REGEX

Class Method Summary collapse

Instance Method Summary collapse

Methods included from Representative

#before_validation, #representative_id_for_type, #validate

Methods included from AutoGenerator

included, #update_from_json

Methods included from AgentNames

#before_validation, included, #update_from_json

Methods included from ASModel

all_models, included, update_publish_flag, update_suppressed_flag

Methods included from JSONModel

JSONModel, #JSONModel, add_error_handler, all, allow_unmapped_enum_value, backend_url, check_valid_refs, client_mode?, custom_validations, destroy_model, enum_default_value, enum_values, handle_error, init, load_schema, #models, models, parse_jsonmodel_ref, parse_reference, repository, repository_for, schema_src, set_publish_flags!, set_repository, strict_mode, strict_mode?, validate_schema, with_repository

Class Method Details

.type_specific_hash_fieldsObject



19
20
21
# File 'backend/app/model/name_person.rb', line 19

def self.type_specific_hash_fields
  %w(primary_name title name_order prefix rest_of_name suffix fuller_form number qualifier )
end

Instance Method Details

#representative_for_typesObject



15
16
17
# File 'backend/app/model/name_person.rb', line 15

def representative_for_types
  { authorized: [:agent_person], is_display_name: [:agent_person] }
end