nat236919 / covid19-api

API for exploring COVID-19 cases around the globe
https://nuttaphat.com/covid19-api/
MIT License
119 stars 63 forks source link

Getdata singleton #216

Closed rafayahmed123 closed 3 years ago

rafayahmed123 commented 3 years ago

Related Issue:

Instead of calling get_data function several times, it is instead encapsulated in singleton class which is only called once to make the code more efficient

Proposed Changes

getData class in get_data which will encapsulate get_data function inside of it

Instead of having several calls to get_data, the instance of the class will be called once and reused several times over instead of calling a new instantiation of it every time

Checklist

Screenshots