Class: AI21::Dataset

Inherits:
Object
  • Object
show all
Defined in:
lib/ai21/dataset.rb

Instance Method Summary collapse

Instance Method Details

#create(name, file) ⇒ Object



13
14
15
# File 'lib/ai21/dataset.rb', line 13

def create(name, file)
  # TODO: create dataset endpoint
end

#delete(id) ⇒ Object



17
18
19
# File 'lib/ai21/dataset.rb', line 17

def delete(id)
  AI21::Client.delete("/dataset/#{id}")
end

#get(id) ⇒ Object



9
10
11
# File 'lib/ai21/dataset.rb', line 9

def get(id)
  AI21::Client.get("/dataset/#{id}")
end

#listObject



5
6
7
# File 'lib/ai21/dataset.rb', line 5

def list
  AI21::Client.get("/dataset")
end