app/presenters/summary/sections/c1a_solicitor_details.rb
def answers
        return [
          Answer.new(:has_solicitor, GenericYesNo::NO)
        ] if solicitor.nil?

        [
          Answer.new(:has_solicitor, GenericYesNo::YES),
          FreeTextAnswer.new(:solicitor_full_name, solicitor.full_name),
          FreeTextAnswer.new(:solicitor_firm_name, solicitor.firm_name),
          FreeTextAnswer.new(:solicitor_address, solicitor.full_address),
          FreeTextAnswer.new(:solicitor_email, solicitor.email),
          FreeTextAnswer.new(:solicitor_phone_number, solicitor.phone_number),
          FreeTextAnswer.new(:solicitor_fax_number, solicitor.fax_number),
          FreeTextAnswer.new(:solicitor_dx_number, solicitor.dx_number),
          FreeTextAnswer.new(:solicitor_reference, solicitor.reference),
        ].select(&:show?)
      end
# This is almost identical to the C100 version, except a couple
# of answers (`solicitor_applicant_name` and `solicitor_fee_account`)
# we have omitted for the C1A version.
# rubocop:disable Metrics/AbcSize
This is almost identical to the C100 version, except a couple
of answers (`solicitor_applicant_name` and `solicitor_fee_account`)
we have omitted for the C1A version.
This is almost identical to the C100 version except a couple of answers ( ` solicitor_applicant_name ` and ` solicitor_fee_account ` ) we have omitted for the C1A version .
def answers
        return [
          Answer.new(:has_solicitor, GenericYesNo::NO)
        ] if solicitor.nil?
        [
          Answer.new(:has_solicitor, GenericYesNo::YES),
          FreeTextAnswer.new(:solicitor_full_name, solicitor.full_name),
          FreeTextAnswer.new(:solicitor_firm_name, solicitor.firm_name),
          FreeTextAnswer.new(:solicitor_address, solicitor.full_address),
          FreeTextAnswer.new(:solicitor_email, solicitor.email),
          FreeTextAnswer.new(:solicitor_phone_number, solicitor.phone_number),
          FreeTextAnswer.new(:solicitor_fax_number, solicitor.fax_number),
          FreeTextAnswer.new(:solicitor_dx_number, solicitor.dx_number),
          FreeTextAnswer.new(:solicitor_reference, solicitor.reference),
        ].select(&:show?)
      end
def answers return [ Answer . new ( :has_solicitor , GenericYesNo :: NO ) ] if solicitor . nil? [ Answer . new ( :has_solicitor , GenericYesNo :: YES ) , FreeTextAnswer . new ( :solicitor_full_name , solicitor . full_name ) , FreeTextAnswer . new ( :solicitor_firm_name , solicitor . firm_name ) , FreeTextAnswer . new ( :solicitor_address , solicitor . full_address ) , FreeTextAnswer . new ( :solicitor_email , solicitor . email ) , FreeTextAnswer . new ( :solicitor_phone_number , solicitor . phone_number ) , FreeTextAnswer . new ( :solicitor_fax_number , solicitor . fax_number ) , FreeTextAnswer . new ( :solicitor_dx_number , solicitor . dx_number ) , FreeTextAnswer . new ( :solicitor_reference , solicitor . reference ) , ] . select ( & :show? ) end
This is almost identical to the C100 version, except a couple
of answers (`solicitor_applicant_name` and `solicitor_fee_account`)
we have omitted for the C1A version.
This is almost identical to the C100 version except a couple of answers ( ` solicitor_applicant_name ` and ` solicitor_fee_account ` ) we have omitted for the C1A version .