Extends
- Model
Members
(static) schema
Define the flitter-orm schema of the model.
- Source:
Methods
(async, static) get_unobligated_players()
returns all of the unobligated players across all teams
- Source:
Returns:
Promise>
(async) is_obligated() → {Promise.<boolean>}
Determine whether the player belongs to a team or not.
- Source:
Returns:
- true if the player is obligated
- Type
- Promise.<boolean>
(async) points_for_week(week_num)
Returns the stats for the player for the given week.
Parameters:
Name | Type | Description |
---|---|---|
week_num |
number |
- Source:
Returns:
Promise
(async) to_api(with_statsopt)
Cast the player to a format compatible with the API.
Parameters:
Name | Type | Attributes | Default | Description |
---|---|---|---|---|
with_stats |
boolean |
<optional> |
false | if true, look up the player's weekly stats |
- Source:
Returns:
Promise