Class: MalawiHivProgramReports::Pepfar::DefaulterList
- Inherits:
-
Object
- Object
- MalawiHivProgramReports::Pepfar::DefaulterList
- Defined in:
- app/services/malawi_hiv_program_reports/pepfar/defaulter_list.rb
Instance Attribute Summary collapse
-
#end_date ⇒ Object
readonly
Returns the value of attribute end_date.
-
#location ⇒ Object
readonly
Returns the value of attribute location.
-
#start_date ⇒ Object
readonly
Returns the value of attribute start_date.
Instance Method Summary collapse
- #find_report ⇒ Object
-
#initialize(start_date:, end_date:, **kwargs) ⇒ DefaulterList
constructor
A new instance of DefaulterList.
Constructor Details
#initialize(start_date:, end_date:, **kwargs) ⇒ DefaulterList
Returns a new instance of DefaulterList.
7 8 9 10 11 |
# File 'app/services/malawi_hiv_program_reports/pepfar/defaulter_list.rb', line 7 def initialize(start_date:, end_date:, **kwargs) @start_date = start_date @end_date = end_date @location = kwargs[:location] end |
Instance Attribute Details
#end_date ⇒ Object (readonly)
Returns the value of attribute end_date.
5 6 7 |
# File 'app/services/malawi_hiv_program_reports/pepfar/defaulter_list.rb', line 5 def end_date @end_date end |
#location ⇒ Object (readonly)
Returns the value of attribute location.
5 6 7 |
# File 'app/services/malawi_hiv_program_reports/pepfar/defaulter_list.rb', line 5 def location @location end |
#start_date ⇒ Object (readonly)
Returns the value of attribute start_date.
5 6 7 |
# File 'app/services/malawi_hiv_program_reports/pepfar/defaulter_list.rb', line 5 def start_date @start_date end |
Instance Method Details
#find_report ⇒ Object
13 14 15 16 17 18 19 20 21 |
# File 'app/services/malawi_hiv_program_reports/pepfar/defaulter_list.rb', line 13 def find_report MalawiHivProgramReports::Moh::Cohort.new( type: 'defaulter_list', location: @location, name: 'defaulter_list', start_date: start_date, end_date: end_date ).defaulter_list('pepfar') end |