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.
9 10 11 12 |
# File 'lib/webshaker.rb', line 9 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.
7 8 9 |
# File 'lib/webshaker.rb', line 7 def model @model end |
#open_ai_key ⇒ Object
Returns the value of attribute open_ai_key.
7 8 9 |
# File 'lib/webshaker.rb', line 7 def open_ai_key @open_ai_key end |