Module: ElevenLabs::Configurable
- Included in:
- ElevenLabs, Client
- Defined in:
- lib/eleven_labs/configurable.rb
Instance Attribute Summary collapse
-
#api_endpoint ⇒ Object
API endpoint methods.
-
#api_key ⇒ Object
Returns the value of attribute api_key.
Class Method Summary collapse
-
.keys ⇒ Array
List of configurable keys for Datatrans::Client.
Instance Method Summary collapse
-
#configure {|_self| ... } ⇒ Object
Set configuration options using a block.
Instance Attribute Details
#api_endpoint ⇒ Object
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_key ⇒ Object
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
.keys ⇒ Array
List of configurable keys for Datatrans::Client
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
17 18 19 |
# File 'lib/eleven_labs/configurable.rb', line 17 def configure yield self end |