@classmethod
def import_(cls, config):
    """
        Imports peer from string.
        :param config:
        :return:
        """
    instnace = cls()
    for line in config:
        line = line.strip()
        setattr(instnace, line.split(':')[0].replace(' ', '_'), line.split(
            ':')[1])
    return instnace
