Class: Antigravity::Config
- Inherits:
-
Object
- Object
- Antigravity::Config
- Defined in:
- lib/antigravity/config.rb
Instance Attribute Summary collapse
-
#api_key ⇒ Object
Returns the value of attribute api_key.
-
#default_model ⇒ Object
Returns the value of attribute default_model.
-
#harness_path ⇒ Object
Returns the value of attribute harness_path.
-
#log_level ⇒ Object
Returns the value of attribute log_level.
Instance Method Summary collapse
- #api_key? ⇒ Boolean
-
#initialize ⇒ Config
constructor
A new instance of Config.
Constructor Details
#initialize ⇒ Config
Returns a new instance of Config.
7 8 9 10 11 12 |
# File 'lib/antigravity/config.rb', line 7 def initialize @api_key = ENV["GEMINI_API_KEY"] @default_model = "gemini-flash-latest" @harness_path = ENV["ANTIGRAVITY_HARNESS_PATH"] || File.("~/.antigravity/bin/localharness") @log_level = :info end |
Instance Attribute Details
#api_key ⇒ Object
Returns the value of attribute api_key.
5 6 7 |
# File 'lib/antigravity/config.rb', line 5 def api_key @api_key end |
#default_model ⇒ Object
Returns the value of attribute default_model.
5 6 7 |
# File 'lib/antigravity/config.rb', line 5 def default_model @default_model end |
#harness_path ⇒ Object
Returns the value of attribute harness_path.
5 6 7 |
# File 'lib/antigravity/config.rb', line 5 def harness_path @harness_path end |
#log_level ⇒ Object
Returns the value of attribute log_level.
5 6 7 |
# File 'lib/antigravity/config.rb', line 5 def log_level @log_level end |
Instance Method Details
#api_key? ⇒ Boolean
14 15 16 |
# File 'lib/antigravity/config.rb', line 14 def api_key? !@api_key.nil? && !@api_key.empty? end |