Module: Replicate

Extended by:
Configurable
Defined in:
lib/replicate.rb,
lib/replicate/client.rb,
lib/replicate/version.rb,
lib/replicate/endpoint.rb,
lib/replicate/record/base.rb,
lib/replicate/client/model.rb,
lib/replicate/configurable.rb,
lib/replicate/record/model.rb,
lib/replicate/client/upload.rb,
lib/replicate/record/upload.rb,
lib/replicate/client/training.rb,
lib/replicate/record/training.rb,
lib/replicate/client/prediction.rb,
lib/replicate/record/prediction.rb,
lib/replicate/record/model_version.rb

Defined Under Namespace

Modules: Configurable, Record Classes: Client, Endpoint, Error

Constant Summary collapse

VERSION =
"0.2.3"

Instance Attribute Summary

Attributes included from Configurable

#api_endpoint_url, #api_token, #dreambooth_endpoint_url, #webhook_url

Class Method Summary collapse

Methods included from Configurable

configure, keys

Class Method Details

.clientObject



19
20
21
22
# File 'lib/replicate.rb', line 19

def client
  return @client if defined?(@client)
  @client = Replicate::Client.new(options)
end