Class: SpecGuardian::Configuration

Inherits:
Object
  • Object
show all
Defined in:
lib/spec_guardian/configuration.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeConfiguration



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_modelObject

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_keyObject

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_tokensObject

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_styleObject

Returns the value of attribute test_style.



3
4
5
# File 'lib/spec_guardian/configuration.rb', line 3

def test_style
  @test_style
end