Class: SlsAdf::Query
Overview
Class Method Summary collapse
-
.assignment(uuid) ⇒ GraphQL::Client::Response
Query the information of the assignment with the given UUID.
-
.context(uuid) ⇒ GraphQL::Client::Response
Query the information of the context token provided.
-
.subject_group(uuid) ⇒ GraphQL::Client::Response
Query the information of the subject group with the given UUID.
-
.task(uuid) ⇒ GraphQL::Client::Response
Query the information of the task with the given UUID.
-
.user(id) ⇒ GraphQL::Client::Response
Query the information of the user with the given ID.
Class Method Details
.assignment(uuid) ⇒ GraphQL::Client::Response
Query the information of the assignment with the given UUID.
41 42 43 |
# File 'lib/sls_adf/query.rb', line 41 def assignment(uuid) execute_query(SlsAdf::Template::Query::Assignment, uuid: uuid) end |
.context(uuid) ⇒ GraphQL::Client::Response
Query the information of the context token provided.
16 17 18 |
# File 'lib/sls_adf/query.rb', line 16 def context(uuid) execute_query(SlsAdf::Template::Query::Context, uuid: uuid) end |
.subject_group(uuid) ⇒ GraphQL::Client::Response
Query the information of the subject group with the given UUID.
32 33 34 35 |
# File 'lib/sls_adf/query.rb', line 32 def subject_group(uuid) execute_query(SlsAdf::Template::Query::SubjectGroup, uuid: uuid, first_student: 45, first_teacher: 30) end |