aPRAWBase¶
aPRAWBase
is the base class used by most Reddit models to self-assign data retrieved from respective endpoints.
It is used by classes such as Submission
and Comment
.
-
class
apraw.models.
aPRAWBase
(reddit: Reddit, data: Dict[str, Any], kind: str = '')¶ The base class for Reddit models.
The
aPRAWBase
class stores data retrieved by the endpoints and automatically assigns it as attributes. Specific information about the aforementioned attributes can be found in the respective implementations such asComment
.- reddit: Reddit
- The
Reddit
instance with which requests are made. - data: Dict
- The data obtained from the /about endpoint.
- kind: str
- The item’s kind / type.