Class: SentimentInsights::Configuration
- Inherits:
-
Object
- Object
- SentimentInsights::Configuration
- Defined in:
- lib/sentiment_insights/configuration.rb
Instance Attribute Summary collapse
-
#aws_region ⇒ Object
Returns the value of attribute aws_region.
-
#claude_api_key ⇒ Object
Returns the value of attribute claude_api_key.
-
#openai_api_key ⇒ Object
Returns the value of attribute openai_api_key.
-
#provider ⇒ Object
Returns the value of attribute provider.
Instance Method Summary collapse
-
#initialize ⇒ Configuration
constructor
A new instance of Configuration.
Constructor Details
#initialize ⇒ Configuration
Returns a new instance of Configuration.
5 6 7 8 9 10 |
# File 'lib/sentiment_insights/configuration.rb', line 5 def initialize @provider = :openai @openai_api_key = ENV["OPENAI_API_KEY"] @claude_api_key = ENV["CLAUDE_API_KEY"] @aws_region = "us-east-1" end |
Instance Attribute Details
#aws_region ⇒ Object
Returns the value of attribute aws_region.
3 4 5 |
# File 'lib/sentiment_insights/configuration.rb', line 3 def aws_region @aws_region end |
#claude_api_key ⇒ Object
Returns the value of attribute claude_api_key.
3 4 5 |
# File 'lib/sentiment_insights/configuration.rb', line 3 def claude_api_key @claude_api_key end |
#openai_api_key ⇒ Object
Returns the value of attribute openai_api_key.
3 4 5 |
# File 'lib/sentiment_insights/configuration.rb', line 3 def openai_api_key @openai_api_key end |
#provider ⇒ Object
Returns the value of attribute provider.
3 4 5 |
# File 'lib/sentiment_insights/configuration.rb', line 3 def provider @provider end |