Class: Ticuna::Config
- Inherits:
-
Object
- Object
- Ticuna::Config
- Defined in:
- lib/ticuna/config.rb
Instance Attribute Summary collapse
-
#anthropic_token ⇒ Object
Returns the value of attribute anthropic_token.
-
#deepseek_token ⇒ Object
Returns the value of attribute deepseek_token.
-
#mistral_token ⇒ Object
Returns the value of attribute mistral_token.
-
#openai_token ⇒ Object
Returns the value of attribute openai_token.
Instance Method Summary collapse
-
#initialize ⇒ Config
constructor
A new instance of Config.
Constructor Details
#initialize ⇒ Config
10 11 12 13 14 15 |
# File 'lib/ticuna/config.rb', line 10 def initialize @openai_token = ENV.fetch("OPENAI_API_KEY", nil) @anthropic_token = ENV.fetch("ANTHROPIC_API_KEY", nil) @deepseek_token = ENV.fetch("DEEPSEEK_API_KEY", nil) @mistral_token = ENV.fetch("MISTRAL_API_KEY", nil) end |
Instance Attribute Details
#anthropic_token ⇒ Object
Returns the value of attribute anthropic_token.
8 9 10 |
# File 'lib/ticuna/config.rb', line 8 def anthropic_token @anthropic_token end |
#deepseek_token ⇒ Object
Returns the value of attribute deepseek_token.
8 9 10 |
# File 'lib/ticuna/config.rb', line 8 def deepseek_token @deepseek_token end |
#mistral_token ⇒ Object
Returns the value of attribute mistral_token.
8 9 10 |
# File 'lib/ticuna/config.rb', line 8 def mistral_token @mistral_token end |
#openai_token ⇒ Object
Returns the value of attribute openai_token.
8 9 10 |
# File 'lib/ticuna/config.rb', line 8 def openai_token @openai_token end |