Class: Renalware::Pathology::Requests::RequestsFactory

Inherits:
Object
  • Object
show all
Defined in:
app/models/renalware/pathology/requests/requests_factory.rb

Instance Method Summary collapse

Constructor Details

#initialize(patients, params) ⇒ RequestsFactory

Returns a new instance of RequestsFactory.



9
10
11
12
# File 'app/models/renalware/pathology/requests/requests_factory.rb', line 9

def initialize(patients, params)
  @patients = patients
  @params = params
end

Instance Method Details

#buildObject



14
15
16
17
18
# File 'app/models/renalware/pathology/requests/requests_factory.rb', line 14

def build
  @patients.map do |patient|
    RequestFactory.new(patient, @params).build
  end
end