Class: Renalware::Pathology::Requests::RequestFactory

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

Instance Method Summary collapse

Constructor Details

#initialize(patient, params) ⇒ RequestFactory

Returns a new instance of RequestFactory.



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

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

Instance Method Details

#buildObject



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

def build
  Request.new(request_params)
end