Made config an attr_accessor, setting config with the factory