Class: LangExtract::Config
- Inherits:
-
Object
- Object
- LangExtract::Config
- Defined in:
- lib/langextract/config.rb
Instance Attribute Summary collapse
-
#default_model ⇒ Object
Returns the value of attribute default_model.
-
#logger ⇒ Object
Returns the value of attribute logger.
Instance Method Summary collapse
-
#initialize ⇒ Config
constructor
A new instance of Config.
Constructor Details
#initialize ⇒ Config
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_model ⇒ Object
Returns the value of attribute default_model.
7 8 9 |
# File 'lib/langextract/config.rb', line 7 def default_model @default_model end |
#logger ⇒ Object
Returns the value of attribute logger.
7 8 9 |
# File 'lib/langextract/config.rb', line 7 def logger @logger end |