PyShift Work Schedule
Work Schedule for Python
Public Member Functions | Public Attributes | List of all members
named.Named Class Reference

Class Named represents a named object such as a Shift or Team. More...

Public Member Functions

def __init__ (self, str name, str description)
 Construct a named object. More...
 
int __hash__ (self)
 
bool __eq__ (self, other)
 
bool __ne__ (self, other)
 
bool __lt__ (self, other)
 
bool __gt__ (self, other)
 
str __str__ (self)
 
def setName (self, str name)
 
int compareName (self, other)
 Compare two Named objects by name. More...
 

Public Attributes

 name
 
 description
 

Detailed Description

Class Named represents a named object such as a Shift or Team.

Constructor & Destructor Documentation

◆ __init__()

def named.Named.__init__ (   self,
str  name,
str  description 
)

Construct a named object.

Parameters
nameName of object
descriptionDescription of object

Member Function Documentation

◆ compareName()

int named.Named.compareName (   self,
  other 
)

Compare two Named objects by name.

Parameters
otherOther named object
Returns
-1 less than, 0 if equal, and 1 if greater than by string sort

The documentation for this class was generated from the following file: