components/financial_assistance/app/domain/financial_assistance/operations/applications/transformers/application_to/cv3_application.rb
def deductions(applicant)
              applicant.deductions.inject([]) do |result, deduction|
                result << { name: deduction.title,
                            kind: get_deduction_kind(deduction.kind),
                            amount: deduction.amount.to_f,
                            start_on: deduction.start_on,
                            end_on: deduction.end_on,
                            frequency_kind: frequency(deduction.frequency_kind),
                            submitted_at: deduction.submitted_at}
                result
              end
            end
# rubocop:disable Metrics/ClassLength
# constructs cv3 payload for medicaid gateway.
disable Metrics/ClassLength
constructs cv3 payload for medicaid gateway.
disable Metrics / ClassLength constructs cv3 payload for medicaid gateway .
def deductions(applicant)
              applicant.deductions.inject([]) do |result, deduction|
                result << { name: deduction.title,
                            kind: get_deduction_kind(deduction.kind),
                            amount: deduction.amount.to_f,
                            start_on: deduction.start_on,
                            end_on: deduction.end_on,
                            frequency_kind: frequency(deduction.frequency_kind),
                            submitted_at: deduction.submitted_at}
                result
              end
            end
def deductions ( applicant ) applicant . deductions . inject ( [ ] ) do | result , deduction | result << { name : deduction . title , kind : get_deduction_kind ( deduction . kind ) , amount : deduction . amount . to_f , start_on : deduction . start_on , end_on : deduction . end_on , frequency_kind : frequency ( deduction . frequency_kind ) , submitted_at : deduction . submitted_at } result end end
rubocop:disable Metrics/ClassLength
constructs cv3 payload for medicaid gateway.
rubocop : disable Metrics / ClassLength constructs cv3 payload for medicaid gateway .
applicant