Commit f1a374f3 authored by Cristiano Urban's avatar Cristiano Urban
Browse files

Added 'type', 'ownerId' attrs + added setters.

parent 67dc9a6e
Loading
Loading
Loading
Loading
+8 −0
Original line number Diff line number Diff line
@@ -5,6 +5,8 @@ class Job(object):

    def __init__(self):
        self.jobId = str(uuid.uuid1().hex)
        self.type = None
        self.ownerId = None
        self.phase = None
        self.quote = None
        self.startTime = None
@@ -18,6 +20,12 @@ class Job(object):
    def setID(self, jobId):
        self.jobId = jobId
        
    def setType(self, type):
        self.type = type
        
    def setOwnerId(self, ownerId):
        self.ownerId = ownerId

    def setPhase(self, phase):
        self.phase = phase