I would try this. Depending on where the identifier is stored:
@client.ews.subscribe.each do |ces| ces([{ :push_subscription_request => { :folder_ids => [{id: calendar[:id], change_key: calendar[:change_key]}], :subscribe_to_all_folders => true, :event_types=> %w{CopiedEvent CreatedEvent DeletedEvent MovedEvent}, :status_frequency => 1, :uRL => 'https://51.ngrok.io/ews_watch', }]) end
Not tested, but this should do the trick. Just iterate over identifiers.
source share