module DaashubAPI::REST::BatchFile

Public Instance Methods

create_batch_file(params) click to toggle source
# 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() click to toggle source
# 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