FabmanObject

class fabman.fabman_object.FabmanObject(requester: Requester, attributes: dict)

Base class for all classes representing objects returned by the API

This makes a call to fabman.fabman_object.FabmanObject.set_attributes to dynamically construct this object’s attributes with a JSON object

Based off of canvasapi.canvas_object.CanvasObject found at https://github.com/ucfopen/canvasapi/blob/develop/canvasapi/canvas_object.py

Initialize the Object. Stores the requester method to interact with the API for further calls

Parameters:
  • requester (Requester) – The Requester object to make requests with

  • attributes (dict) – The attributes to initialize this object with

set_attributes(attributes: dict)

Loads the Object with the specified attributes. Typically, these attributes will be returned by the API when the object is created. Can also be used when update ‘PUT’ requests are made to the API.

Parameters:

attributes (dict) – The attributes to initialize this object with