Class: Renalware::Letters::LetterParamsProcessor

Inherits:
Object
  • Object
show all
Defined in:
app/models/renalware/letters/letter_params_processor.rb

Instance Method Summary collapse

Constructor Details

#initialize(patient) ⇒ LetterParamsProcessor

Returns a new instance of LetterParamsProcessor.



11
12
13
# File 'app/models/renalware/letters/letter_params_processor.rb', line 11

def initialize(patient)
  @patient = patient
end

Instance Method Details

#call(params) ⇒ Object



15
16
17
18
# File 'app/models/renalware/letters/letter_params_processor.rb', line 15

def call(params)
  params = process_main_recipient_attributes(params)
  process_cc_recipients_attributes(params)
end