class LMSGraphQL::Resolvers::Canvas::GetSingleRole
Public Instance Methods
resolve(id:, account_id:, role_id:, role: nil, get_all: false)
click to toggle source
# File lib/lms_graphql/resolvers/canvas/get_single_role.rb, line 12 def resolve(id:, account_id:, role_id:, role: nil, get_all: false) result = context[:canvas_api].call("GET_SINGLE_ROLE").proxy( "GET_SINGLE_ROLE", { "id": id, "account_id": account_id, "role_id": role_id, "role": role }, nil, get_all, ) get_all ? result : result.parsed_response end