@classmethod<EOL><INDENT>def from_list(cls, values, settings):<DEDENT>
logger.debug('<STR_LIT>')<EOL>self = cls()<EOL>self.settings = settings<EOL>self.instances = []<EOL>for instance in values:<EOL><INDENT>uid, ip, port = instance['<STR_LIT>'], instance['<STR_LIT>'], instance['<STR_LIT:port>']<EOL>new_instance = Instance.new(settings=settings, cluster=self, uid=uid, ip=ip, port=port)<EOL>self.instances.append(new_instance)<EOL><DEDENT>return self<EOL>
From a list of dicts (each dict is an `Instance.to_dict`)