Class: LMSGraphQL::Mutations::Canvas::CreateNewGradingStandardAccount

Inherits:
CanvasBaseMutation
  • Object
show all
Defined in:
lib/lms_graphql/mutations/canvas/create_new_grading_standard_accounts.rb

Instance Method Summary collapse

Instance Method Details

#resolve(account_id:, title:, grading_scheme_entry_name:, grading_scheme_entry_value:) ⇒ Object



12
13
14
15
16
17
18
19
20
21
22
# File 'lib/lms_graphql/mutations/canvas/create_new_grading_standard_accounts.rb', line 12

def resolve(account_id:, title:, grading_scheme_entry_name:, grading_scheme_entry_value:)
  ctx[:canvas_api].proxy(
    "CREATE_NEW_GRADING_STANDARD_ACCOUNTS",
    {
      "account_id": ,
      "title": title,
      "grading_scheme_entry[name]": grading_scheme_entry_name,
      "grading_scheme_entry[value]": grading_scheme_entry_value            },
    nil,
  ).parsed_response
end