Manufacturer Class
Represents a manufacturer in the racing league, encapsulating information about the manufacturer including its name, abbreviation, color, and associated event log.
Attributes:
Name | Type | Description |
---|---|---|
manufacturer_json |
dict
|
The raw JSON data representing the manufacturer. |
espn_instance |
object
|
An instance of the ESPN API handler used for making requests. |
api_ref |
str
|
The API reference URL for the manufacturer. |
id |
str
|
The unique identifier of the manufacturer. |
name |
str
|
The full name of the manufacturer. |
display_name |
str
|
The display name of the manufacturer. |
short_display_name |
str
|
The short display name of the manufacturer. |
abbreviation |
str
|
The abbreviation of the manufacturer's name. |
color |
str
|
The color associated with the manufacturer. |
event_log_ref |
str
|
The reference to the manufacturer's event log. |
Methods:
Name | Description |
---|---|
__repr__ |
Returns a string representation of the Manufacturer instance. |
Source code in pyespn/classes/team.py
__init__(manufacturer_json, espn_instance)
Initializes a Manufacturer object with the provided JSON data and ESPN instance.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
manufacturer_json
|
dict
|
The raw JSON data for the manufacturer. |
required |
espn_instance
|
object
|
An instance of the ESPN API handler. |
required |
Source code in pyespn/classes/team.py
__repr__()
to_dict()
Converts the Manufacturer instance to its original JSON dictionary.
Returns:
Name | Type | Description |
---|---|---|
dict |
dict
|
The manufacturer's raw JSON data. |