Class: Google::APIClient::BatchedCallResponse Private
- Inherits:
-
Object
- Object
- Google::APIClient::BatchedCallResponse
- Defined in:
- lib/google/api_client/batch.rb
Overview
This class is part of a private API. You should avoid using this class if possible, as it may be removed or be changed in the future.
Helper class to contain a response to an individual batched call.
Instance Attribute Summary collapse
-
#body ⇒ String
private
HTTP response body.
-
#call_id ⇒ String
readonly
private
UUID of the call.
-
#headers ⇒ Hash
private
HTTP response headers.
-
#status ⇒ Fixnum
private
HTTP status code.
Instance Method Summary collapse
-
#initialize(call_id, status = nil, headers = nil, body = nil) ⇒ BatchedCallResponse
constructor
private
Initialize the call response.
Constructor Details
#initialize(call_id, status = nil, headers = nil, body = nil) ⇒ BatchedCallResponse
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
Initialize the call response
47 48 49 |
# File 'lib/google/api_client/batch.rb', line 47 def initialize(call_id, status = nil, headers = nil, body = nil) @call_id, @status, @headers, @body = call_id, status, headers, body end |
Instance Attribute Details
#body ⇒ String
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
Returns HTTP response body.
34 35 36 |
# File 'lib/google/api_client/batch.rb', line 34 def body @body end |
#call_id ⇒ String (readonly)
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
Returns UUID of the call.
28 29 30 |
# File 'lib/google/api_client/batch.rb', line 28 def call_id @call_id end |
#headers ⇒ Hash
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
Returns HTTP response headers.
32 33 34 |
# File 'lib/google/api_client/batch.rb', line 32 def headers @headers end |
#status ⇒ Fixnum
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
Returns HTTP status code.
30 31 32 |
# File 'lib/google/api_client/batch.rb', line 30 def status @status end |