MCPcopy Create free account
hub / github.com/TimMcCool/scratchattach / connect_classroom

Method connect_classroom

scratchattach/site/session.py:1178–1188  ·  view source on GitHub ↗

Gets a class using this session. Args: class_id (str): class id of the requested class Returns: scratchattach.classroom.Classroom: An object representing the requested classroom

(self, class_id)

Source from the content-addressed store, hash-verified

1176 return self._make_linked_object("id", int(studio_id), studio.Studio, exceptions.StudioNotFound)
1177
1178 def connect_classroom(self, class_id) -> classroom.Classroom:
1179 """
1180 Gets a class using this session.
1181
1182 Args:
1183 class_id (str): class id of the requested class
1184
1185 Returns:
1186 scratchattach.classroom.Classroom: An object representing the requested classroom
1187 """
1188 return self._make_linked_object("id", int(class_id), classroom.Classroom, exceptions.ClassroomNotFound)
1189
1190 def connect_classroom_from_token(self, class_token) -> classroom.Classroom:
1191 """

Callers 1

create_classMethod · 0.95

Calls 1

_make_linked_objectMethod · 0.95

Tested by

no test coverage detected