Module: Unleash
- Defined in:
- lib/unleash.rb,
lib/unleash/client.rb,
lib/unleash/context.rb,
lib/unleash/variant.rb,
lib/unleash/version.rb,
lib/unleash/util/http.rb,
lib/unleash/strategies.rb,
lib/unleash/spec_version.rb,
lib/unleash/configuration.rb,
lib/unleash/toggle_fetcher.rb,
lib/unleash/metrics_reporter.rb,
lib/unleash/bootstrap/handler.rb,
lib/unleash/scheduled_executor.rb,
lib/unleash/bootstrap/configuration.rb,
lib/unleash/bootstrap/provider/base.rb,
lib/unleash/bootstrap/provider/from_url.rb,
lib/unleash/bootstrap/provider/from_file.rb
Defined Under Namespace
Modules: Bootstrap, Util Classes: Client, Configuration, Context, DefaultOverrideError, MetricsReporter, ScheduledExecutor, Strategies, ToggleFetcher, Variant
Constant Summary collapse
- TIME_RESOLUTION =
3
- STRATEGIES =
Deprecated: Use Unleash.configure to add custom strategies
self.configuration.strategies
- VERSION =
"6.0.8".freeze
- CLIENT_SPECIFICATION_VERSION =
"5.1.7".freeze
Class Attribute Summary collapse
-
.configuration ⇒ Object
Returns the value of attribute configuration.
-
.engine ⇒ Object
Returns the value of attribute engine.
-
.logger ⇒ Object
Returns the value of attribute logger.
-
.reporter ⇒ Object
Returns the value of attribute reporter.
-
.toggle_fetcher ⇒ Object
Returns the value of attribute toggle_fetcher.
Class Method Summary collapse
-
.configure {|configuration| ... } ⇒ Object
Support for configuration via yield:.
- .strategies ⇒ Object
Class Attribute Details
.configuration ⇒ Object
Returns the value of attribute configuration.
13 14 15 |
# File 'lib/unleash.rb', line 13 def configuration @configuration end |
.engine ⇒ Object
Returns the value of attribute engine.
13 14 15 |
# File 'lib/unleash.rb', line 13 def engine @engine end |
.logger ⇒ Object
Returns the value of attribute logger.
13 14 15 |
# File 'lib/unleash.rb', line 13 def logger @logger end |
.reporter ⇒ Object
Returns the value of attribute reporter.
13 14 15 |
# File 'lib/unleash.rb', line 13 def reporter @reporter end |
.toggle_fetcher ⇒ Object
Returns the value of attribute toggle_fetcher.
13 14 15 |
# File 'lib/unleash.rb', line 13 def toggle_fetcher @toggle_fetcher end |
Class Method Details
.configure {|configuration| ... } ⇒ Object
Support for configuration via yield:
22 23 24 25 26 27 |
# File 'lib/unleash.rb', line 22 def self.configure yield(configuration) self.configuration.validate! self.configuration.refresh_backup_file! end |
.strategies ⇒ Object
29 30 31 |
# File 'lib/unleash.rb', line 29 def self.strategies self.configuration.strategies end |