Class: ReplicateClient::Configuration
- Inherits:
-
Object
- Object
- ReplicateClient::Configuration
- 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
-
#access_token ⇒ String
The access token for the API.
-
#request_timeout ⇒ Integer
The request timeout in seconds.
-
#uri_base ⇒ String
The base URI for the API.
-
#webhook_url ⇒ String
The URL to send webhook events to.
Instance Method Summary collapse
-
#initialize ⇒ ReplicateClient::Configuration
constructor
Initialize the configuration.
Constructor Details
#initialize ⇒ ReplicateClient::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_token ⇒ String
The access token for the API.
30 31 32 |
# File 'lib/replicate-client.rb', line 30 def access_token @access_token end |
#request_timeout ⇒ Integer
The request timeout in seconds.
40 41 42 |
# File 'lib/replicate-client.rb', line 40 def request_timeout @request_timeout end |
#uri_base ⇒ String
The base URI for the API.
35 36 37 |
# File 'lib/replicate-client.rb', line 35 def uri_base @uri_base end |
#webhook_url ⇒ String
The URL to send webhook events to.
45 46 47 |
# File 'lib/replicate-client.rb', line 45 def webhook_url @webhook_url end |