components/financial_assistance/app/models/financial_assistance/applicant.rb
def attributes_for_export
      applicant_params = attributes.transform_keys(&:to_sym).slice(:family_member_id,:person_hbx_id,:name_pfx,:first_name,:middle_name,:last_name,:name_sfx,
                                                                   :gender,:is_incarcerated,:is_disabled,:ethnicity,:race,:tribal_id,:language_code,
                                                                   :no_dc_address,:is_homeless,:is_temporarily_out_of_state,:no_ssn,:citizen_status,
                                                                   :is_consumer_role,:vlp_document_id,:is_applying_coverage,:vlp_subject,:alien_number,
                                                                   :i94_number,:visa_number,:passport_number,:sevis_id,:naturalization_number,
                                                                   :receipt_number,:citizenship_number,:card_number,:country_of_citizenship,
                                                                   :issuing_country,:status,:indian_tribe_member,
                                                                   :same_with_primary,:vlp_description,:tribal_state,:tribal_name)
      applicant_params.merge!({dob: dob.strftime('%d/%m/%Y'), ssn: ssn, relationship: relation_with_primary})
      applicant_params.merge!(expiration_date: expiration_date.strftime('%d/%m/%Y')) if expiration_date.present?
      applicant_params[:addresses] = construct_association_fields(addresses)
      applicant_params[:emails] = construct_association_fields(emails)
      applicant_params[:phones] = construct_association_fields(phones)
      applicant_params
    end
# rubocop:disable Metrics/ClassLength TODO: Remove this
disable Metrics/ClassLength TODO: Remove this
disable Metrics / ClassLength TODO : Remove this
def attributes_for_export
      applicant_params = attributes.transform_keys(&:to_sym).slice(:family_member_id,:person_hbx_id,:name_pfx,:first_name,:middle_name,:last_name,:name_sfx,
                                                                   :gender,:is_incarcerated,:is_disabled,:ethnicity,:race,:tribal_id,:language_code,
                                                                   :no_dc_address,:is_homeless,:is_temporarily_out_of_state,:no_ssn,:citizen_status,
                                                                   :is_consumer_role,:vlp_document_id,:is_applying_coverage,:vlp_subject,:alien_number,
                                                                   :i94_number,:visa_number,:passport_number,:sevis_id,:naturalization_number,
                                                                   :receipt_number,:citizenship_number,:card_number,:country_of_citizenship,
                                                                   :issuing_country,:status,:indian_tribe_member,
                                                                   :same_with_primary,:vlp_description,:tribal_state,:tribal_name)
      applicant_params.merge!({dob: dob.strftime('%d/%m/%Y'), ssn: ssn, relationship: relation_with_primary})
      applicant_params.merge!(expiration_date: expiration_date.strftime('%d/%m/%Y')) if expiration_date.present?
      applicant_params[:addresses] = construct_association_fields(addresses)
      applicant_params[:emails] = construct_association_fields(emails)
      applicant_params[:phones] = construct_association_fields(phones)
      applicant_params
    end
def attributes_for_export applicant_params = attributes . transform_keys ( & :to_sym ) . slice ( :family_member_id , :person_hbx_id , :name_pfx , :first_name , :middle_name , :last_name , :name_sfx , :gender , :is_incarcerated , :is_disabled , :ethnicity , :race , :tribal_id , :language_code , :no_dc_address , :is_homeless , :is_temporarily_out_of_state , :no_ssn , :citizen_status , :is_consumer_role , :vlp_document_id , :is_applying_coverage , :vlp_subject , :alien_number , :i94_number , :visa_number , :passport_number , :sevis_id , :naturalization_number , :receipt_number , :citizenship_number , :card_number , :country_of_citizenship , :issuing_country , :status , :indian_tribe_member , :same_with_primary , :vlp_description , :tribal_state , :tribal_name ) applicant_params . merge! ( { dob : dob . strftime ( '%d/%m/%Y' ) , ssn : ssn , relationship : relation_with_primary } ) applicant_params . merge! ( expiration_date : expiration_date . strftime ( '%d/%m/%Y' ) ) if expiration_date . present? applicant_params [ :addresses ] = construct_association_fields ( addresses ) applicant_params [ :emails ] = construct_association_fields ( emails ) applicant_params [ :phones ] = construct_association_fields ( phones ) applicant_params end
rubocop:disable Metrics/ClassLength TODO: Remove this
rubocop : disable Metrics / ClassLength TODO : Remove this