Module: ReplicateClient

Defined in:
lib/replicate-client.rb,
lib/replicate-client/model.rb,
lib/replicate-client/client.rb,
lib/replicate-client/version.rb,
lib/replicate-client/webhook.rb,
lib/replicate-client/hardware.rb,
lib/replicate-client/training.rb,
lib/replicate-client/deployment.rb,
lib/replicate-client/prediction.rb,
lib/replicate-client/model/version.rb

Defined Under Namespace

Classes: Client, Configuration, ConfigurationError, Deployment, Error, ForbiddenError, Hardware, Model, NotFoundError, Prediction, ServerError, Training, UnauthorizedError, Webhook

Constant Summary collapse

VERSION =
"0.1.7"

Class Attribute Summary collapse

Class Method Summary collapse

Class Attribute Details

.configurationReplicateClient::Configuration

The configuration for the client.



62
63
64
# File 'lib/replicate-client.rb', line 62

def configuration
  @configuration
end

Class Method Details

.clientReplicateClient::Client

The client for the API.



75
76
77
# File 'lib/replicate-client.rb', line 75

def client
  @client ||= Client.new(configuration)
end

.configure {|ReplicateClient::Configuration| ... } ⇒ Object

Configure the client.

Yields:



67
68
69
70
# File 'lib/replicate-client.rb', line 67

def configure
  self.configuration ||= Configuration.new
  yield(configuration)
end