Trees | Indices | Help |
|
---|
|
object --+ | Wine
The class Wine
represents entries in a user's wine diary.
Each entry brings together a wine type and an evaluation of that wine by
the user.
A wine object is, in a way, immutable once created; there are no methods to change any of its attributes.
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
Inherited from |
|
|||
Inherited from |
|
Creates a new wine diary entry with the given attributes.
|
Returns the name of the wine.
|
Returns the description of the wine.
|
Returns the price of a bottle of the kind of wine represented by this wine object.
|
Returns the rating given to the wine by a user.
|
Returns the value-for-money index for the wine. The index is equal to the rating of the wine divided by the price of the wine. Thus, a higher value-for-money index indicates better value for money.
|
Determines if the wine is better than another given wine, based on the ratings given to the two wines.
|
Trees | Indices | Help |
|
---|
Generated by Epydoc 3.0.1 on Thu Sep 1 13:05:52 2011 | http://epydoc.sourceforge.net |