PyShift Work Schedule
Work Schedule for Python
Loading...
Searching...
No Matches
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

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

Public Attributes

 name
 
 description
 

Detailed Description

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

Constructor & Destructor Documentation

◆ __init__()

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: