Class: LMS::GraphQL::Resolvers::Canvas::GetPreferenceType

Inherits:
CanvasBaseResolver
  • Object
show all
Defined in:
lib/lms/graphql/resolvers/canvas/get_preference_type.rb

Instance Method Summary collapse

Instance Method Details

#resolve(user_id:, type:, address:, notification:) ⇒ Object



13
14
15
16
17
18
19
20
21
22
23
# File 'lib/lms/graphql/resolvers/canvas/get_preference_type.rb', line 13

def resolve(user_id:, type:, address:, notification:)
  context[:canvas_api].proxy(
    "GET_PREFERENCE_TYPE",
    {
      "user_id": user_id,
      "type": type,
      "address": address,
      "notification": notification              },
    nil,
  ).parsed_response
end