Class: CoPlan::Configuration
- Inherits:
-
Object
- Object
- CoPlan::Configuration
- Defined in:
- lib/coplan/configuration.rb
Instance Attribute Summary collapse
-
#ai_api_key ⇒ Object
Returns the value of attribute ai_api_key.
-
#ai_base_url ⇒ Object
Returns the value of attribute ai_base_url.
-
#ai_model ⇒ Object
Returns the value of attribute ai_model.
-
#api_authenticate ⇒ Object
Returns the value of attribute api_authenticate.
-
#authenticate ⇒ Object
Returns the value of attribute authenticate.
-
#error_reporter ⇒ Object
Returns the value of attribute error_reporter.
-
#notification_handler ⇒ Object
Returns the value of attribute notification_handler.
-
#sign_in_path ⇒ Object
Returns the value of attribute sign_in_path.
Instance Method Summary collapse
-
#initialize ⇒ Configuration
constructor
A new instance of Configuration.
Constructor Details
#initialize ⇒ Configuration
Returns a new instance of Configuration.
8 9 10 11 12 13 14 15 |
# File 'lib/coplan/configuration.rb', line 8 def initialize @authenticate = nil @ai_base_url = "https://api.openai.com/v1" @ai_api_key = nil @ai_model = "gpt-4o" @error_reporter = ->(exception, context) { Rails.error.report(exception, context: context) } @notification_handler = nil end |
Instance Attribute Details
#ai_api_key ⇒ Object
Returns the value of attribute ai_api_key.
4 5 6 |
# File 'lib/coplan/configuration.rb', line 4 def ai_api_key @ai_api_key end |
#ai_base_url ⇒ Object
Returns the value of attribute ai_base_url.
4 5 6 |
# File 'lib/coplan/configuration.rb', line 4 def ai_base_url @ai_base_url end |
#ai_model ⇒ Object
Returns the value of attribute ai_model.
4 5 6 |
# File 'lib/coplan/configuration.rb', line 4 def ai_model @ai_model end |
#api_authenticate ⇒ Object
Returns the value of attribute api_authenticate.
3 4 5 |
# File 'lib/coplan/configuration.rb', line 3 def api_authenticate @api_authenticate end |
#authenticate ⇒ Object
Returns the value of attribute authenticate.
3 4 5 |
# File 'lib/coplan/configuration.rb', line 3 def authenticate @authenticate end |
#error_reporter ⇒ Object
Returns the value of attribute error_reporter.
5 6 7 |
# File 'lib/coplan/configuration.rb', line 5 def error_reporter @error_reporter end |
#notification_handler ⇒ Object
Returns the value of attribute notification_handler.
6 7 8 |
# File 'lib/coplan/configuration.rb', line 6 def notification_handler @notification_handler end |
#sign_in_path ⇒ Object
Returns the value of attribute sign_in_path.
3 4 5 |
# File 'lib/coplan/configuration.rb', line 3 def sign_in_path @sign_in_path end |