Add conditions to the loop of methods generated in fastly.rb