Class: RubberDuck::Configuration
- Inherits:
-
Object
- Object
- RubberDuck::Configuration
- Defined in:
- lib/rubber_duck/configuration.rb
Instance Attribute Summary collapse
-
#enabled ⇒ Object
Returns the value of attribute enabled.
-
#log_lines ⇒ Object
Returns the value of attribute log_lines.
-
#model ⇒ Object
Returns the value of attribute model.
-
#openai_api_key ⇒ Object
Returns the value of attribute openai_api_key.
Instance Method Summary collapse
-
#initialize ⇒ Configuration
constructor
A new instance of Configuration.
Constructor Details
#initialize ⇒ Configuration
Returns a new instance of Configuration.
5 6 7 8 9 10 |
# File 'lib/rubber_duck/configuration.rb', line 5 def initialize @openai_api_key = nil @model = "gpt-5-nano" @enabled = true @log_lines = 50 end |
Instance Attribute Details
#enabled ⇒ Object
Returns the value of attribute enabled.
3 4 5 |
# File 'lib/rubber_duck/configuration.rb', line 3 def enabled @enabled end |
#log_lines ⇒ Object
Returns the value of attribute log_lines.
3 4 5 |
# File 'lib/rubber_duck/configuration.rb', line 3 def log_lines @log_lines end |
#model ⇒ Object
Returns the value of attribute model.
3 4 5 |
# File 'lib/rubber_duck/configuration.rb', line 3 def model @model end |
#openai_api_key ⇒ Object
Returns the value of attribute openai_api_key.
3 4 5 |
# File 'lib/rubber_duck/configuration.rb', line 3 def openai_api_key @openai_api_key end |