Class: Google::APIClient::Service::BatchedCallResult

Inherits:
Result
  • Object
show all
Defined in:
lib/google/api_client/service/batch.rb

Overview

Helper class to contain the result of an individual batched call.

Instance Attribute Summary

Attributes inherited from Result

#body, #data, #data?, #error?, #error_message, #headers, #media_type, #next_page_token, #page_token_param, #pagination_type, #prev_page_token, #request, #response, #resumable_upload, #status, #success?

Instance Method Summary collapse

Methods inherited from Result

#initialize, #next_page, #prev_page

Constructor Details

This class inherits a constructor from Google::APIClient::Result

Instance Method Details

#call_indexFixnum

Returns Index of the call.

Returns:

  • (Fixnum)

    Index of the call



27
28
29
# File 'lib/google/api_client/service/batch.rb', line 27

def call_index
  return @base_result.response.call_id.to_i - 1
end