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

Creational Pattern Design #266

Closed dcruze96 closed 3 years ago

dcruze96 commented 3 years ago

Related Issue:

No issues

Proposed Changes

Use a creational pattern like singleton design to have a single instance of get_data which can be used.

Additional Info

The class getDataSingleton to encapsulate the get_data method so that there is only one instance of get_data which can be used.