In this coding exercise you’ll learn how to automatically retry a failed process in a Ruby program.
Implement a system that automatically retries a failed API call for a pre-determined number of times.
Build out the ability for a Ruby method that calls a failing API to retry 3 times, along with storing the error messages in an array.
Real World Usage
Whenever you work with an API it’s important to assume that there will be times when the API is down. In this coding exercise you’ll learn how to automatically retry an API call after it has failed.
Can be found on the solutions branch on github.