class LMSGraphQL::Resolvers::Canvas::GetPreferenceType
Public Instance Methods
resolve(user_id:, type:, address:, notification:, get_all: false)
click to toggle source
# File lib/lms_graphql/resolvers/canvas/get_preference_type.rb, line 12 def resolve(user_id:, type:, address:, notification:, get_all: false) result = context[:canvas_api].call("GET_PREFERENCE_TYPE").proxy( "GET_PREFERENCE_TYPE", { "user_id": user_id, "type": type, "address": address, "notification": notification }, nil, get_all, ) get_all ? result : result.parsed_response end