Class: LMSGraphQL::Mutations::Canvas::UpdateCustomColor

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

Instance Method Summary collapse

Instance Method Details

#resolve(id:, asset_string:, hexcode: nil) ⇒ Object



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

def resolve(id:, asset_string:, hexcode: nil)
  ctx[:canvas_api].proxy(
    "UPDATE_CUSTOM_COLOR",
    {
      "id": id,
      "asset_string": asset_string,
      "hexcode": hexcode            },
    nil,
  ).parsed_response
end