Module: BatchRequestClient
- Extended by:
- BatchUtil
- Defined in:
- lib/batch_request_client.rb,
lib/batch_request_client/version.rb,
lib/batch_request_client/batch_util.rb
Defined Under Namespace
Modules: BatchUtil
Constant Summary
collapse
- VERSION =
'0.1.4'
Class Method Summary
collapse
Instance Method Summary
collapse
Methods included from BatchUtil
create_payload, get_batch_url, headers, padded_response, request_signature
Class Method Details
.create(array_objects, url, mode = nil) ⇒ Object
11
12
13
14
15
16
17
|
# File 'lib/batch_request_client.rb', line 11
def self.create(array_objects, url, mode = nil)
uri = URI.parse(url)
batch_url = get_batch_url(uri, mode)
payload = create_payload(array_objects, 'POST', uri.path)
response = RestClient.post(batch_url, payload, )
JSON.parse(response)['responses']['response']
end
|
Instance Method Details
#delete ⇒ Object
23
24
25
|
# File 'lib/batch_request_client.rb', line 23
def delete
raise NotImplementedError
end
|
#update ⇒ Object
19
20
21
|
# File 'lib/batch_request_client.rb', line 19
def update
raise NotImplementedError
end
|