Class: LangExtract::Config

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeConfig

Returns a new instance of Config.



9
10
11
12
# File 'lib/langextract/config.rb', line 9

def initialize
  @default_model = ENV.fetch("LANGEXTRACT_MODEL", nil)
  @logger = default_logger
end

Instance Attribute Details

#default_modelObject

Returns the value of attribute default_model.



7
8
9
# File 'lib/langextract/config.rb', line 7

def default_model
  @default_model
end

#loggerObject

Returns the value of attribute logger.



7
8
9
# File 'lib/langextract/config.rb', line 7

def logger
  @logger
end