Class: EducationForm::Forms::VA1995

Inherits:
Base
  • Object
show all
Defined in:
app/sidekiq/education_form/forms/va_1995.rb

Constant Summary collapse

FORM_TYPES =
{
  chapter30: 'CH30',
  chapter32: 'CH32',
  chapter33: 'CH33',
  chapter33Post911: 'CH33',
  chapter33FryScholarship: 'CH33',
  chapter1606: 'CH1606',
  chapter1607: 'CH1607',
  transferOfEntitlement: 'TransferOfEntitlement'
}.freeze

Constants inherited from Base

Base::TEMPLATE_PATH

Instance Attribute Summary

Attributes inherited from Base

#form, #record, #text

Instance Method Summary collapse

Methods inherited from Base

#applicant_name, #applicant_ssn, #benefit_type, build, #direct_deposit_type, #disclosure_for, #employment_history, #format, #full_address, #full_address_with_street3, #full_name, #get_template, #header, #hours_and_type, #initialize, #parse_with_template, #parse_with_template_path, #school_name, #school_name_and_addr, #ssn_gender_dob, #to_date, #value_or_na, #yesno, #yesno_or_blank

Constructor Details

This class inherits a constructor from EducationForm::Forms::Base

Instance Method Details

#form_benefitObject



24
25
26
27
28
29
30
# File 'app/sidekiq/education_form/forms/va_1995.rb', line 24

def form_benefit
  if Settings.vsp_environment.eql?('production')
    @applicant.benefit&.titleize
  else
    @applicant.benefitUpdate&.titleize
  end
end

#form_typeObject



20
21
22
# File 'app/sidekiq/education_form/forms/va_1995.rb', line 20

def form_type
  FORM_TYPES[@applicant.benefit&.to_sym]
end

#header_form_typeObject



32
33
34
# File 'app/sidekiq/education_form/forms/va_1995.rb', line 32

def header_form_type
  'V1995'
end

#schoolObject



16
17
18
# File 'app/sidekiq/education_form/forms/va_1995.rb', line 16

def school
  @applicant.newSchool
end