Home | Trees | Indices | Help |
|
---|
|
object --+ | Game
Game represents a single pre- or regular-season game. It provides a window into the statistics of every player that played into the game, along with the winner of the game, the score and a list of all the scoring plays.
Instance Methods | |||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
Inherited from |
Static Methods | |||
a new object with type S, a subtype of T |
|
Properties | |
Inherited from |
Method Details |
|
Creates a new Game instance given a game identifier. The game identifier is used by NFL.com's GameCenter live update web pages. It is used to construct a URL to download JSON data for the game. If the game has been completed, the JSON data will be cached to disk so that subsequent accesses will not re-download the data but instead read it from disk. When the JSON data is written to disk, it is compressed using gzip.
|
Save the JSON data to fpath. This is done automatically if the game is over. |
Returns a string of the score of the game. e.g., "NE (32) vs. NYG (0)". |
Home | Trees | Indices | Help |
|
---|
Generated by Epydoc 3.0.1 on Thu Sep 6 19:46:05 2012 | http://epydoc.sourceforge.net |