Class: Google::APIClient::BatchedCallResponse
- Inherits:
-
Object
- Object
- Google::APIClient::BatchedCallResponse
- Defined in:
- lib/google/api_client/batch.rb
Overview
Helper class to contain a response to an individual batched call.
Instance Attribute Summary collapse
-
#body ⇒ Object
Returns the value of attribute body.
-
#call_id ⇒ Object
readonly
Returns the value of attribute call_id.
-
#headers ⇒ Object
Returns the value of attribute headers.
-
#status ⇒ Object
Returns the value of attribute status.
Instance Method Summary collapse
-
#initialize(call_id, status = nil, headers = nil, body = nil) ⇒ BatchedCallResponse
constructor
A new instance of BatchedCallResponse.
Constructor Details
#initialize(call_id, status = nil, headers = nil, body = nil) ⇒ BatchedCallResponse
Returns a new instance of BatchedCallResponse.
26 27 28 |
# File 'lib/google/api_client/batch.rb', line 26 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 ⇒ Object
Returns the value of attribute body.
24 25 26 |
# File 'lib/google/api_client/batch.rb', line 24 def body @body end |
#call_id ⇒ Object (readonly)
Returns the value of attribute call_id.
23 24 25 |
# File 'lib/google/api_client/batch.rb', line 23 def call_id @call_id end |
#headers ⇒ Object
Returns the value of attribute headers.
24 25 26 |
# File 'lib/google/api_client/batch.rb', line 24 def headers @headers end |
#status ⇒ Object
Returns the value of attribute status.
24 25 26 |
# File 'lib/google/api_client/batch.rb', line 24 def status @status end |