Class: Quant::Config::Config
- Inherits:
-
Object
- Object
- Quant::Config::Config
- Defined in:
- lib/quant/config.rb
Instance Attribute Summary collapse
-
#indicators ⇒ Object
readonly
Returns the value of attribute indicators.
Instance Method Summary collapse
- #apply_indicator_settings(**settings) ⇒ Object
-
#initialize ⇒ Config
constructor
A new instance of Config.
Constructor Details
#initialize ⇒ Config
Returns a new instance of Config.
8 9 10 |
# File 'lib/quant/config.rb', line 8 def initialize @indicators = Settings::Indicators.defaults end |
Instance Attribute Details
#indicators ⇒ Object (readonly)
Returns the value of attribute indicators.
6 7 8 |
# File 'lib/quant/config.rb', line 6 def indicators @indicators end |
Instance Method Details
#apply_indicator_settings(**settings) ⇒ Object
12 13 14 |
# File 'lib/quant/config.rb', line 12 def apply_indicator_settings(**settings) @indicators.apply_settings(**settings) end |