Module: Openai::Client::Configurable
- Included in:
- Openai::Client
- Defined in:
- lib/openai/client/configurable.rb
Instance Method Summary collapse
-
#configuration ⇒ Openai::Client::Configuration
Public: Returns the instance of Configuration class.
-
#configure {|configuration| ... } ⇒ Openai::Client::Configuration
Public: Allows to provide configuration values.
Instance Method Details
#configuration ⇒ Openai::Client::Configuration
Public: Returns the instance of Configuration class
10 11 12 |
# File 'lib/openai/client/configurable.rb', line 10 def configuration @configuration ||= Configuration.new end |
#configure {|configuration| ... } ⇒ Openai::Client::Configuration
26 27 28 |
# File 'lib/openai/client/configurable.rb', line 26 def configure yield(configuration) end |