Sha256: 51883b60280df1f3ca2e2090f58ce080d30a98b4c9b6950db10ad115449000f5

Contents?: true

Size: 477 Bytes

Versions: 112

Compression:

Stored size: 477 Bytes

Contents

# frozen_string_literal: true

require "collection_presenter"

module Renalware
  module Letters
    module Printing
      class PrintableRecipients
        def self.for(letter)
          recipients = [letter.main_recipient]
          recipients.concat(letter.cc_recipients)
          recipients.reject!(&:statment_to_indicate_letter_will_be_emailed)
          CollectionPresenter.new(recipients, RecipientPresenter::WithCurrentAddress)
        end
      end
    end
  end
end

Version data entries

112 entries across 112 versions & 1 rubygems

Version Path
renalware-core-2.1.1 app/models/renalware/letters/printing/printable_recipients.rb
renalware-core-2.1.0 app/models/renalware/letters/printing/printable_recipients.rb
renalware-core-2.0.167 app/models/renalware/letters/printing/printable_recipients.rb
renalware-core-2.0.166 app/models/renalware/letters/printing/printable_recipients.rb
renalware-core-2.0.165 app/models/renalware/letters/printing/printable_recipients.rb
renalware-core-2.0.164 app/models/renalware/letters/printing/printable_recipients.rb
renalware-core-2.0.163 app/models/renalware/letters/printing/printable_recipients.rb
renalware-core-2.0.162 app/models/renalware/letters/printing/printable_recipients.rb
renalware-core-2.0.161 app/models/renalware/letters/printing/printable_recipients.rb
renalware-core-2.0.160 app/models/renalware/letters/printing/printable_recipients.rb
renalware-core-2.0.159 app/models/renalware/letters/printing/printable_recipients.rb
renalware-core-2.0.158 app/models/renalware/letters/printing/printable_recipients.rb
renalware-core-2.0.157 app/models/renalware/letters/printing/printable_recipients.rb
renalware-core-2.0.156 app/models/renalware/letters/printing/printable_recipients.rb
renalware-core-2.0.155 app/models/renalware/letters/printing/printable_recipients.rb
renalware-core-2.0.153 app/models/renalware/letters/printing/printable_recipients.rb
renalware-core-2.0.152 app/models/renalware/letters/printing/printable_recipients.rb
renalware-core-2.0.151 app/models/renalware/letters/printing/printable_recipients.rb
renalware-core-2.0.149 app/models/renalware/letters/printing/printable_recipients.rb
renalware-core-2.0.148 app/models/renalware/letters/printing/printable_recipients.rb