Class: Google::APIClient::BatchedCallResponse

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

Overview

Helper class to contain a response to an individual batched call.

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#bodyObject

Returns the value of attribute body.



24
25
26
# File 'lib/google/api_client/batch.rb', line 24

def body
  @body
end

#call_idObject (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

#headersObject

Returns the value of attribute headers.



24
25
26
# File 'lib/google/api_client/batch.rb', line 24

def headers
  @headers
end

#statusObject

Returns the value of attribute status.



24
25
26
# File 'lib/google/api_client/batch.rb', line 24

def status
  @status
end