iro/model/status.py
author Sandro Knauß <knauss@netzguerilla.net>
Thu, 29 Mar 2012 18:27:15 +0200
branchdevel
changeset 263 52284710c0b4
parent 215 5bacdb7e94d1
child 294 0e75bd39767d
permissions -rw-r--r--
iro.model: adding docstrings

class Status:
    '''status object -- the resulat of one :class:`iro.controller.task.Task`.'''
    def __init__(self, provider, route, costs=0.0, count=0, exID=None):
        """
        :param `iro.offer.provider.Provider` provider: a provider object
        :param string route: a route of the provider
        :param `decimal.Decimal` costs: costs for sending this message
        :param integer count: count of sended messages
        :param string exID: ID of external API
        """
        self.provider = provider
        self.route = route

        self.costs = costs
        self.count = count
        self.exID = exID