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

Inherits:
BaseMutation
  • 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



14
15
16
17
18
19
20
21
22
23
24
25
# File 'lib/lms_graphql/mutations/canvas/update_custom_color.rb', line 14

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