Class: ReplicateClient::Configuration

Inherits:
Object
  • Object
show all
Defined in:
lib/replicate-client.rb

Constant Summary collapse

DEFAULT_URI_BASE =
"https://api.replicate.com/v1"
DEFAULT_REQUEST_TIMEOUT =
120

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeReplicateClient::Configuration

Initialize the configuration.



50
51
52
53
54
55
# File 'lib/replicate-client.rb', line 50

def initialize
  @access_token = nil
  @webhook_url = nil
  @uri_base = DEFAULT_URI_BASE
  @request_timeout = DEFAULT_REQUEST_TIMEOUT
end

Instance Attribute Details

#access_tokenString

The access token for the API.

Returns:

  • (String)


30
31
32
# File 'lib/replicate-client.rb', line 30

def access_token
  @access_token
end

#request_timeoutInteger

The request timeout in seconds.

Returns:

  • (Integer)


40
41
42
# File 'lib/replicate-client.rb', line 40

def request_timeout
  @request_timeout
end

#uri_baseString

The base URI for the API.

Returns:

  • (String)


35
36
37
# File 'lib/replicate-client.rb', line 35

def uri_base
  @uri_base
end

#webhook_urlString

The URL to send webhook events to.

Returns:

  • (String)


45
46
47
# File 'lib/replicate-client.rb', line 45

def webhook_url
  @webhook_url
end