Updated __init__ comments
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
This commit is contained in:
parent
43daae8cb4
commit
b31213c55c
@ -21,7 +21,8 @@ class Communicator:
|
||||
"""
|
||||
|
||||
def __init__(self, currentconsumer: str, uuid: str):
|
||||
"""Initialize object
|
||||
"""**Constructor:**
|
||||
Initializes the object.
|
||||
|
||||
:param consumerlocator: the current consumer's IP address as a string
|
||||
:param uuid: string typed UUID.
|
||||
|
@ -8,7 +8,6 @@ import datetime
|
||||
from communicator import Communicator
|
||||
import os
|
||||
|
||||
|
||||
__author__ = "@dscharnitzky"
|
||||
__copyright__ = "Copyright 2020, GoldenPogácsa Team"
|
||||
__module_name__ = "consumerlocator"
|
||||
@ -23,13 +22,13 @@ class ConsumerLocator:
|
||||
"""
|
||||
|
||||
def __init__(self, uuid: str, communicator: Communicator):
|
||||
"""Initializes the object.
|
||||
"""**Constructor:**
|
||||
Initializes the object.
|
||||
|
||||
Gets the known consumer's IP address from the PRODUCER_KNOWNCONSUMER envar.
|
||||
|
||||
:param str uuid: Not used
|
||||
:param communicator: the :class:'communicator.Communicator' instance that will be used for the low level
|
||||
communication.
|
||||
:param uuid: Not used
|
||||
:param communicator: the :class:'communicator.Communicator' instance that will be used for the low level communication.
|
||||
"""
|
||||
self.consumerlist = [{"Host": KNOWNCONSUMER, "State": True, "LastOk": datetime.datetime.now()}]
|
||||
self.currentconsumer = self.consumerlist[0]
|
||||
|
@ -24,7 +24,8 @@ class MessageSender:
|
||||
"""
|
||||
|
||||
def __init__(self, communicator: Communicator):
|
||||
"""Initializes the object.
|
||||
"""**Constructor:**
|
||||
Initializes the object.
|
||||
|
||||
:param communicator: an instance of :class:`communicator.Communicator`.
|
||||
"""
|
||||
|
Reference in New Issue
Block a user