Module: DaashubAPI::REST::BatchFile
- Included in:
- Client
- Defined in:
- lib/daashub_api/rest/batch_file.rb
Instance Method Summary collapse
Instance Method Details
#create_batch_file(params) ⇒ Object
13 14 15 16 17 18 |
# File 'lib/daashub_api/rest/batch_file.rb', line 13 def create_batch_file(params) query = { batch_file: params } response = DaashubAPI::Request.perform_post('/v1/batch_files', access_token, query: query) DaashubAPI::BatchFile.new(response) end |
#list_batch_files ⇒ Object
7 8 9 10 11 |
# File 'lib/daashub_api/rest/batch_file.rb', line 7 def list_batch_files response = DaashubAPI::Request.perform_get('/v1/batch_files', access_token) response['items'].map { |item| DaashubAPI::BatchFile.new(item) } end |