Class: Renalware::HD::PatientsDialysingByDayQuery
- Inherits:
-
Object
- Object
- Renalware::HD::PatientsDialysingByDayQuery
- Defined in:
- app/models/renalware/hd/patients_dialysing_by_day_query.rb
Instance Attribute Summary collapse
-
#day_of_week ⇒ Object
readonly
Returns the value of attribute day_of_week.
-
#hospital_unit_id ⇒ Object
readonly
Returns the value of attribute hospital_unit_id.
Instance Method Summary collapse
- #call ⇒ Object
-
#initialize(hospital_unit_id, day_of_week) ⇒ PatientsDialysingByDayQuery
constructor
A new instance of PatientsDialysingByDayQuery.
Constructor Details
#initialize(hospital_unit_id, day_of_week) ⇒ PatientsDialysingByDayQuery
Returns a new instance of PatientsDialysingByDayQuery.
15 16 17 18 |
# File 'app/models/renalware/hd/patients_dialysing_by_day_query.rb', line 15 def initialize(hospital_unit_id, day_of_week) @hospital_unit_id = hospital_unit_id @day_of_week = day_of_week end |
Instance Attribute Details
#day_of_week ⇒ Object (readonly)
Returns the value of attribute day_of_week.
13 14 15 |
# File 'app/models/renalware/hd/patients_dialysing_by_day_query.rb', line 13 def day_of_week @day_of_week end |
#hospital_unit_id ⇒ Object (readonly)
Returns the value of attribute hospital_unit_id.
13 14 15 |
# File 'app/models/renalware/hd/patients_dialysing_by_day_query.rb', line 13 def hospital_unit_id @hospital_unit_id end |
Instance Method Details
#call ⇒ Object
20 21 22 23 24 25 |
# File 'app/models/renalware/hd/patients_dialysing_by_day_query.rb', line 20 def call PatientsDialysingByScheduleQuery.new( hospital_unit_id, schedule_definition_ids ).call end |