Class: RainbowLLM::Configuration
- Inherits:
-
Object
- Object
- RainbowLLM::Configuration
- Defined in:
- lib/rainbow_llm/configuration.rb
Instance Attribute Summary collapse
-
#providers ⇒ Object
Returns the value of attribute providers.
Instance Method Summary collapse
-
#initialize ⇒ Configuration
constructor
A new instance of Configuration.
- #provider(name, config) ⇒ Object
Constructor Details
#initialize ⇒ Configuration
Returns a new instance of Configuration.
7 8 9 |
# File 'lib/rainbow_llm/configuration.rb', line 7 def initialize @providers = {} end |
Instance Attribute Details
#providers ⇒ Object
Returns the value of attribute providers.
5 6 7 |
# File 'lib/rainbow_llm/configuration.rb', line 5 def providers @providers end |
Instance Method Details
#provider(name, config) ⇒ Object
11 12 13 |
# File 'lib/rainbow_llm/configuration.rb', line 11 def provider(name, config) @providers[name.to_sym] = config end |