class LMSGraphQL::Mutations::Canvas::UpdateCustomColor

Public Instance Methods

resolve(id:, asset_string:, hexcode: nil) click to toggle source
# 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