Package gofer :: Package agent :: Module action :: Class Action
[hide private]
[frames] | no frames]

Class Action

source code

Abstract recurring action (base).

Instance Methods [hide private]
 
__init__(self, target, **interval) source code
str
name(self)
Get action name.
source code
 
__str__(self) source code
 
__call__(self) source code
Instance Variables [hide private]
datetime last
The last run timestamp.
(method|function) target
The action target.
Method Details [hide private]

__init__(self, target, **interval)
(Constructor)

source code 
Parameters:
  • target ((method|function)) - The action target.
  • interval (timedelta) - The run interval (minutes).
  • interval (timedelta) - The run interval. One of:
    • days
    • seconds
    • minutes
    • hours
    • weeks

name(self)

source code 

Get action name. Default to class name.

Returns: str
The action name.