Class: ApmTraceable::Configuration
- Inherits:
-
Object
- Object
- ApmTraceable::Configuration
- Defined in:
- lib/apm_traceable/configuration.rb
Overview
設定値を保持するクラス
Defined Under Namespace
Classes: InsufficientConfigurationError
Instance Method Summary collapse
Instance Method Details
#adapter ⇒ Object
8 9 10 |
# File 'lib/apm_traceable/configuration.rb', line 8 def adapter @adapter || raise(InsufficientConfigurationError, 'adapter is not set') end |
#adapter=(args) ⇒ Object
12 13 14 15 |
# File 'lib/apm_traceable/configuration.rb', line 12 def adapter=(args) adapter_name, = args @adapter = ::ApmTraceable::Adapters.const_get("#{adapter_name.to_s.capitalize}Adapter").new(**( || {})) end |