Class: MalawiHivProgramReports::Clinic::RegimensByWeightAndGender
- Inherits:
-
Object
- Object
- MalawiHivProgramReports::Clinic::RegimensByWeightAndGender
- Includes:
- Utils::ConcurrencyUtils
- Defined in:
- app/services/malawi_hiv_program_reports/clinic/regimens_by_weight_and_gender.rb
Constant Summary
Constants included from Utils::ConcurrencyUtils
Utils::ConcurrencyUtils::LOCK_FILES_DIR_PATH
Instance Attribute Summary collapse
-
#end_date ⇒ Object
readonly
Returns the value of attribute end_date.
-
#start_date ⇒ Object
readonly
Returns the value of attribute start_date.
Instance Method Summary collapse
- #find_report ⇒ Object
-
#initialize(start_date:, end_date:, **kwargs) ⇒ RegimensByWeightAndGender
constructor
A new instance of RegimensByWeightAndGender.
Methods included from Utils::ConcurrencyUtils
Constructor Details
#initialize(start_date:, end_date:, **kwargs) ⇒ RegimensByWeightAndGender
Returns a new instance of RegimensByWeightAndGender.
10 11 12 13 14 15 |
# File 'app/services/malawi_hiv_program_reports/clinic/regimens_by_weight_and_gender.rb', line 10 def initialize(start_date:, end_date:, **kwargs) @start_date = start_date @end_date = end_date @rebuild_outcomes = true @occupation = kwargs[:occupation] end |
Instance Attribute Details
#end_date ⇒ Object (readonly)
Returns the value of attribute end_date.
8 9 10 |
# File 'app/services/malawi_hiv_program_reports/clinic/regimens_by_weight_and_gender.rb', line 8 def end_date @end_date end |
#start_date ⇒ Object (readonly)
Returns the value of attribute start_date.
8 9 10 |
# File 'app/services/malawi_hiv_program_reports/clinic/regimens_by_weight_and_gender.rb', line 8 def start_date @start_date end |
Instance Method Details
#find_report ⇒ Object
17 18 19 |
# File 'app/services/malawi_hiv_program_reports/clinic/regimens_by_weight_and_gender.rb', line 17 def find_report regimen_counts end |