Class: ParticipantImport

Inherits:
ApplicationRecord
  • Object
show all
Includes:
PgSearch
Defined in:
api/app/models/participant_import.rb

Overview

Participant imports represent a list of participants and their demographics given to RedJade by a client in order to possibly add participants to an event. Provided either from a the API or from a file uploaded from the UI.) They can exist apart from being applied to an event and are therefore not necessarily synced with the event yet. They are applied to an event by creating a participant import action.

  • [String] document_file_name
  • [String] document_content_type
  • [Integer] document_file_size
  • [DateTime] document_updated_at
  • [Integer] company_id, null: false
  • [Integer] created_by_id, null: false
  • [DateTime] created_at, null: false
  • [Jsonb] data
  • [Integer] import_type, null: false
  • [String] created_by_type
  • [Integer] event_id, null: false
  • [Boolean] match_name, default: false, null: false

Constant Summary collapse

CACHE_KEY_PREFIX =
'participant_import_'

Class Method Summary collapse

Instance Method Summary collapse

Class Method Details

.cleanup(now = DateTime.now.utc) ⇒ Object

.participant_import_optionsObject

Instance Method Details

#cache_keyObject

#delete_cacheObject

#get_fileObject

#nameObject

#parserObject

#parser_from_cacheObject

#set_cache(data) ⇒ Object