Class: LMSGraphQL::Resolvers::Canvas::ListAllAccountCalendar

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

Instance Method Summary collapse

Instance Method Details

#resolve(account_id:, search_term: nil, filter: nil, get_all: false) ⇒ Object



12
13
14
15
16
17
18
19
20
21
22
23
# File 'lib/lms_graphql/resolvers/canvas/list_all_account_calendars.rb', line 12

def resolve(account_id:, search_term: nil, filter: nil, get_all: false)
  result = context[:canvas_api].call("LIST_ALL_ACCOUNT_CALENDARS").proxy(
    "LIST_ALL_ACCOUNT_CALENDARS",
    {
      "account_id": ,
      "search_term": search_term,
      "filter": filter            },
    nil,
    get_all,
  )
  get_all ? result : result.parsed_response
end