Sha256: c1fdaa4d40ea8099198191213567baf42424b067fde939c631a78071b3f4bc24
Contents?: true
Size: 725 Bytes
Versions: 3
Compression:
Stored size: 725 Bytes
Contents
module Kooaba QUERY_URL = "https://query-api.kooaba.com/v4/" UPLOAD_URL = "https://upload-api.kooaba.com/api/v4/" def self.data_key=(data_key) @@data_key = data_key end def self.query_key=(query_key) @@query_key = query_key end def self.data_key @@data_key end def self.query_key @@query_key end def self.upload(item, bucket_id) raise ArgumentError, "You need to specify the Data Key before uploading an item" if Kooaba::data_key == nil UploadRequest.new(item, bucket_id).start end def self.query(image_path) raise ArgumentError, "You need to specify the Query Key before making queries" if Kooaba.query_key == nil QueryRequest.new(image_path).start end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
kooaba-0.0.6 | lib/kooaba/base.rb |
kooaba-0.0.5 | lib/kooaba/base.rb |
kooaba-0.0.4 | lib/kooaba/base.rb |