Class: OmniAI::Config
- Inherits:
-
Object
- Object
- OmniAI::Config
- Defined in:
- lib/omniai/config.rb
Overview
A configuration for each agent w/ ‘api_key` / `host` / `logger`.
Instance Attribute Summary collapse
-
#api_key ⇒ Object
Returns the value of attribute api_key.
-
#host ⇒ Object
Returns the value of attribute host.
-
#logger ⇒ Object
Returns the value of attribute logger.
Instance Method Summary collapse
Instance Attribute Details
#api_key ⇒ Object
Returns the value of attribute api_key.
6 7 8 |
# File 'lib/omniai/config.rb', line 6 def api_key @api_key end |
#host ⇒ Object
Returns the value of attribute host.
6 7 8 |
# File 'lib/omniai/config.rb', line 6 def host @host end |
#logger ⇒ Object
Returns the value of attribute logger.
6 7 8 |
# File 'lib/omniai/config.rb', line 6 def logger @logger end |
Instance Method Details
#inspect ⇒ String
9 10 11 12 |
# File 'lib/omniai/config.rb', line 9 def inspect masked_api_key = "#{api_key[..2]}***" if api_key "#<#{self.class.name} api_key=#{masked_api_key.inspect} host=#{host.inspect}>" end |