Class: OmniAI::Google::Config
- Inherits:
-
Config
- Object
- Config
- OmniAI::Google::Config
- Defined in:
- lib/omniai/google/config.rb
Overview
Configuration for Google.
Defined Under Namespace
Modules: Version
Constant Summary collapse
Instance Attribute Summary collapse
Instance Method Summary collapse
-
#initialize(api_key: ENV.fetch('GOOGLE_API_KEY', nil), host: ENV.fetch('GOOGLE_HOST', DEFAULT_HOST), version: ENV.fetch('GOOGLE_VERSION', DEFAULT_VERSION), logger: nil, timeout: nil) ⇒ Config
constructor
A new instance of Config.
Constructor Details
#initialize(api_key: ENV.fetch('GOOGLE_API_KEY', nil), host: ENV.fetch('GOOGLE_HOST', DEFAULT_HOST), version: ENV.fetch('GOOGLE_VERSION', DEFAULT_VERSION), logger: nil, timeout: nil) ⇒ Config
Returns a new instance of Config.
24 25 26 27 28 29 30 31 32 33 |
# File 'lib/omniai/google/config.rb', line 24 def initialize( api_key: ENV.fetch('GOOGLE_API_KEY', nil), host: ENV.fetch('GOOGLE_HOST', DEFAULT_HOST), version: ENV.fetch('GOOGLE_VERSION', DEFAULT_VERSION), logger: nil, timeout: nil ) super(api_key:, host:, logger:, timeout:) @version = version end |
Instance Attribute Details
#version ⇒ String?
17 18 19 |
# File 'lib/omniai/google/config.rb', line 17 def version @version end |