Class: LMSGraphQL::Mutations::Canvas::CreateBlackoutDateAccount
- Inherits:
-
BaseMutation
- Object
- GraphQL::Schema::Mutation
- BaseMutation
- LMSGraphQL::Mutations::Canvas::CreateBlackoutDateAccount
- Defined in:
- lib/lms_graphql/mutations/canvas/create_blackout_date_accounts.rb
Instance Method Summary collapse
Instance Method Details
#resolve(account_id:, start_date: nil, end_date: nil, event_title: nil) ⇒ Object
15 16 17 18 19 20 21 22 23 24 25 26 27 |
# File 'lib/lms_graphql/mutations/canvas/create_blackout_date_accounts.rb', line 15 def resolve(account_id:, start_date: nil, end_date: nil, event_title: nil) context[:canvas_api].call("CREATE_BLACKOUT_DATE_ACCOUNTS").proxy( "CREATE_BLACKOUT_DATE_ACCOUNTS", { "account_id": account_id }, { "start_date": start_date, "end_date": end_date, "event_title": event_title }, ).parsed_response end |