Class: SentimentInsights::Configuration

Inherits:
Object
  • Object
show all
Defined in:
lib/sentiment_insights/configuration.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeConfiguration

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_regionObject

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_keyObject

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_keyObject

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

#providerObject

Returns the value of attribute provider.



3
4
5
# File 'lib/sentiment_insights/configuration.rb', line 3

def provider
  @provider
end