Class: SpecGuardian::Configuration
- Inherits:
-
Object
- Object
- SpecGuardian::Configuration
- Defined in:
- lib/spec_guardian/configuration.rb
Instance Attribute Summary collapse
-
#ai_model ⇒ Object
Returns the value of attribute ai_model.
-
#api_key ⇒ Object
Returns the value of attribute api_key.
-
#max_tokens ⇒ Object
Returns the value of attribute max_tokens.
-
#test_style ⇒ Object
Returns the value of attribute test_style.
Instance Method Summary collapse
-
#initialize ⇒ Configuration
constructor
A new instance of Configuration.
Constructor Details
#initialize ⇒ Configuration
5 6 7 8 9 10 |
# File 'lib/spec_guardian/configuration.rb', line 5 def initialize @api_key = ENV['ANTHROPIC_API_KEY'] @ai_model = 'claude-3-7-sonnet-20250219' @max_tokens = 20_000 @test_style = 'thorough' # Options: minimal, thorough, edge_cases end |
Instance Attribute Details
#ai_model ⇒ Object
Returns the value of attribute ai_model.
3 4 5 |
# File 'lib/spec_guardian/configuration.rb', line 3 def ai_model @ai_model end |
#api_key ⇒ Object
Returns the value of attribute api_key.
3 4 5 |
# File 'lib/spec_guardian/configuration.rb', line 3 def api_key @api_key end |
#max_tokens ⇒ Object
Returns the value of attribute max_tokens.
3 4 5 |
# File 'lib/spec_guardian/configuration.rb', line 3 def max_tokens @max_tokens end |
#test_style ⇒ Object
Returns the value of attribute test_style.
3 4 5 |
# File 'lib/spec_guardian/configuration.rb', line 3 def test_style @test_style end |