Module: AccreditedRepresentation::CreateAccreditedIndividual
- Defined in:
- lib/accredited_representation/create_accredited_individual.rb
Class Method Summary collapse
Class Method Details
.perform(email, ogc_number, poa_code, individual_type) ⇒ Object
5 6 7 8 9 10 11 |
# File 'lib/accredited_representation/create_accredited_individual.rb', line 5 def self.perform(email, ogc_number, poa_code, individual_type) accredited_individual = AccreditedIndividual.find_or_initialize_by(registration_number: ogc_number) accredited_individual.update!(ogc_id: SecureRandom.uuid, poa_code:, individual_type:, email:) end |