Implementation of Michael Nygard's Circuit Breaker pattern in Ruby