Class: EducationForm::Forms::VA1990s

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

Constant Summary collapse

LEARNING_FORMAT =
{
  'inPerson': 'In person',
  'online': 'Online',
  'onlineAndInPerson': 'Online and in person'
}.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, #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

#bank_account_numberObject



25
26
27
# File 'app/sidekiq/education_form/forms/va_1990s.rb', line 25

def 
  @applicant.bankAccount.accountNumber if @applicant.bankAccount&.accountNumber.present?
end

#bank_account_typeObject



29
30
31
# File 'app/sidekiq/education_form/forms/va_1990s.rb', line 29

def 
  @applicant.bankAccount.accountType if @applicant.bankAccount&.accountType.present?
end

#bank_routing_numberObject



21
22
23
# File 'app/sidekiq/education_form/forms/va_1990s.rb', line 21

def bank_routing_number
  @applicant.bankAccount.routingNumber if @applicant.bankAccount&.routingNumber.present?
end

#header_form_typeObject



5
6
7
# File 'app/sidekiq/education_form/forms/va_1990s.rb', line 5

def header_form_type
  'V1990S'
end

#locationObject



15
16
17
18
19
# File 'app/sidekiq/education_form/forms/va_1990s.rb', line 15

def location
  return '' if @applicant.providerName.blank?

  "#{@applicant.programCity}, #{@applicant.programState}"
end

#school_nameObject



33
34
35
# File 'app/sidekiq/education_form/forms/va_1990s.rb', line 33

def school_name
  @applicant.providerName
end