Class: LMSGraphQL::Resolvers::Canvas::ListPreferencesCommunicationChannelId

Inherits:
CanvasBaseResolver
  • Object
show all
Defined in:
lib/lms_graphql/resolvers/canvas/list_preferences_communication_channel_id.rb

Instance Method Summary collapse

Instance Method Details

#resolve(user_id:, communication_channel_id:) ⇒ Object



10
11
12
13
14
15
16
17
18
# File 'lib/lms_graphql/resolvers/canvas/list_preferences_communication_channel_id.rb', line 10

def resolve(user_id:, communication_channel_id:)
  context[:canvas_api].call("LIST_PREFERENCES_COMMUNICATION_CHANNEL_ID").proxy(
    "LIST_PREFERENCES_COMMUNICATION_CHANNEL_ID",
    {
      "user_id": user_id,
      "communication_channel_id": communication_channel_id            },
    nil,
  ).parsed_response
end