Class: FormProfiles::VA2122a

Inherits:
FormProfile
  • Object
show all
Defined in:
app/models/form_profiles/va_2122a.rb

Instance Method Summary collapse

Instance Method Details

#metadataObject



21
22
23
24
25
26
27
# File 'app/models/form_profiles/va_2122a.rb', line 21

def 
  {
    version: 0,
    prefill: true,
    returnUrl: '/claimant-information'
  }
end

#prefillObject



15
16
17
18
19
# File 'app/models/form_profiles/va_2122a.rb', line 15

def prefill
  prefill_identity_validation

  super
end

#prefill_identity_validationObject (private)



31
32
33
34
35
36
# File 'app/models/form_profiles/va_2122a.rb', line 31

def prefill_identity_validation
  @identity_validation = VA2122::IdentityValidation.new(
    has_icn: user.icn.present?,
    has_participant_id: user.participant_id.present?
  )
end