Class: MalawiHivProgramReports::Clinic::LimsResults
- Inherits:
-
Object
- Object
- MalawiHivProgramReports::Clinic::LimsResults
- Includes:
- Utils::CommonSqlQueryUtils
- Defined in:
- app/services/malawi_hiv_program_reports/clinic/lims_results.rb
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) ⇒ LimsResults
constructor
A new instance of LimsResults.
Methods included from Utils::CommonSqlQueryUtils
#current_occupation_query, #external_client_query, #occupation_filter, #partition_by_site, #process_occupation
Constructor Details
#initialize(start_date:, end_date:, **kwargs) ⇒ LimsResults
Returns a new instance of LimsResults.
10 11 12 13 14 |
# File 'app/services/malawi_hiv_program_reports/clinic/lims_results.rb', line 10 def initialize(start_date:, end_date:, **kwargs) @start_date = start_date @end_date = end_date @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/lims_results.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/lims_results.rb', line 8 def start_date @start_date end |
Instance Method Details
#find_report ⇒ Object
16 17 18 |
# File 'app/services/malawi_hiv_program_reports/clinic/lims_results.rb', line 16 def find_report data end |