Module: ElevenLabs::Configurable

Included in:
ElevenLabs, Client
Defined in:
lib/eleven_labs/configurable.rb

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#api_endpointObject

API endpoint methods



22
23
24
# File 'lib/eleven_labs/configurable.rb', line 22

def api_endpoint
  @api_endpoint ||= "https://api.elevenlabs.io/v1"
end

#api_keyObject

Returns the value of attribute api_key.



5
6
7
# File 'lib/eleven_labs/configurable.rb', line 5

def api_key
  @api_key
end

Class Method Details

.keysArray

List of configurable keys for Datatrans::Client

Returns:

  • (Array)

    of option keys



11
12
13
# File 'lib/eleven_labs/configurable.rb', line 11

def keys
  @keys ||= %i[api_key api_endpoint]
end

Instance Method Details

#configure {|_self| ... } ⇒ Object

Set configuration options using a block

Yields:

  • (_self)

Yield Parameters:



17
18
19
# File 'lib/eleven_labs/configurable.rb', line 17

def configure
  yield self
end