Class: Webshaker::Configuration

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeConfiguration

Returns a new instance of Configuration.



10
11
12
13
# File 'lib/webshaker.rb', line 10

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

#modelObject

Returns the value of attribute model.



8
9
10
# File 'lib/webshaker.rb', line 8

def model
  @model
end

#open_ai_keyObject

Returns the value of attribute open_ai_key.



8
9
10
# File 'lib/webshaker.rb', line 8

def open_ai_key
  @open_ai_key
end