def handle_batch_multiple_actions
      # TODO: improve handling of errors in the batch response
      actions = []
      @batch.each do |action|
        actions << to_query(action[:params])
      end

      results = really_make_call({'method' => 'batch.run','methodFeed' => JSON.dump(actions)}, :post)
      @batch = nil
      extract_session_key results
      results
    end
def handle_batch_multiple_actions
      # TODO: improve handling of errors in the batch response
      actions = []
      @batch.each do |action|
        actions << to_query(action[:params])
      end

      results = really_make_call({'method' => 'batch.run','methodFeed' => JSON.dump(actions)}, :post)
      @batch = nil
      extract_session_key results
      results
    end
This function handles making the call when there is more than one call in
 the batch.