Class: Renalware::Transplants::RecipientWorkupBuilder
- Inherits:
-
Object
- Object
- Renalware::Transplants::RecipientWorkupBuilder
- Defined in:
- app/models/renalware/transplants/recipient_workup_builder.rb
Instance Method Summary collapse
- #build ⇒ Object
-
#initialize(workup:, default_consenter_name:) ⇒ RecipientWorkupBuilder
constructor
A new instance of RecipientWorkupBuilder.
Constructor Details
#initialize(workup:, default_consenter_name:) ⇒ RecipientWorkupBuilder
Returns a new instance of RecipientWorkupBuilder.
8 9 10 11 |
# File 'app/models/renalware/transplants/recipient_workup_builder.rb', line 8 def initialize(workup:, default_consenter_name:) @workup = workup @default_consenter_name = end |
Instance Method Details
#build ⇒ Object
13 14 15 16 17 18 |
# File 'app/models/renalware/transplants/recipient_workup_builder.rb', line 13 def build if workup.new_record? end workup end |