Simple Ruby implementation of the Circuit Breaker design pattern