Sha256: f9417b3d1b0a551ce05ad39da15ae40fe98ffcfd410b1f3b892620377614796d
Contents?: true
Size: 337 Bytes
Versions: 3
Compression:
Stored size: 337 Bytes
Contents
# frozen_string_literal: true module AI21 class Dataset def list AI21::Client.get("/dataset") end def get(id) AI21::Client.get("/dataset/#{id}") end def create(name, file) # TODO: create dataset endpoint end def delete(id) AI21::Client.delete("/dataset/#{id}") end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
ai21-0.2.1 | lib/ai21/dataset.rb |
ai21-0.2.0 | lib/ai21/dataset.rb |
ai21-0.1.0 | lib/ai21/dataset.rb |