Class: RubberDuck::Configuration

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

Instance Attribute Summary collapse

Instance Method Summary collapse

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