Separate out fluent interface stuff and convert example to Ruby