Class: Webshaker::Configuration
- Inherits:
-
Object
- Object
- Webshaker::Configuration
- Defined in:
- lib/webshaker.rb
Instance Attribute Summary collapse
-
#model ⇒ Object
Returns the value of attribute model.
-
#open_ai_key ⇒ Object
Returns the value of attribute open_ai_key.
Instance Method Summary collapse
-
#initialize ⇒ Configuration
constructor
A new instance of Configuration.
Constructor Details
#initialize ⇒ Configuration
Returns a new instance of Configuration.
10 11 12 13 |
# File 'lib/webshaker.rb', line 10 def initialize @open_ai_key = ENV.fetch("WEBSHAKER_OPEN_AI_KEY", nil) @model = ENV.fetch("WEBSHAKER_OPEN_AI_MODEL", "gpt-4o-mini") end |
Instance Attribute Details
#model ⇒ Object
Returns the value of attribute model.
8 9 10 |
# File 'lib/webshaker.rb', line 8 def model @model end |
#open_ai_key ⇒ Object
Returns the value of attribute open_ai_key.
8 9 10 |
# File 'lib/webshaker.rb', line 8 def open_ai_key @open_ai_key end |