Class: Renalware::HD::PatientsDialysingByDayQuery

Inherits:
Object
  • Object
show all
Defined in:
app/models/renalware/hd/patients_dialysing_by_day_query.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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_weekObject (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_idObject (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

#callObject



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