class LMSGraphQL::Resolvers::Canvas::ListPreferencesCommunicationChannelId
Public Instance Methods
resolve(user_id:, communication_channel_id:, get_all: false)
click to toggle source
# File lib/lms_graphql/resolvers/canvas/list_preferences_communication_channel_id.rb, line 11 def resolve(user_id:, communication_channel_id:, get_all: false) result = 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, get_all, ) get_all ? result : result.parsed_response end