Module: Featureflow
- Defined in:
- lib/featureflow.rb,
lib/featureflow/client.rb,
lib/featureflow/feature.rb,
lib/featureflow/version.rb,
lib/featureflow/evaluate.rb,
lib/featureflow/conditions.rb,
lib/featureflow/user_builder.rb,
lib/featureflow/events_client.rb,
lib/featureflow/polling_client.rb,
lib/featureflow/evaluate_helpers.rb,
lib/featureflow/rails/rails_client.rb
Defined Under Namespace
Classes: Client, Conditions, Configuration, Evaluate, EvaluateHelpers, EventsClient, Feature, FeatureflowRailtie, PollingClient, RailsClient, UserBuilder
Constant Summary
collapse
- VERSION =
"0.6.0"
Class Method Summary
collapse
Class Method Details
.client ⇒ Object
Also known as:
featureflow
28
29
30
|
# File 'lib/featureflow.rb', line 28
def client
@client ||= Featureflow::Client.new(configuration)
end
|
10
11
12
13
14
15
16
17
18
|
# File 'lib/featureflow.rb', line 10
def configure(config_hash = nil)
if config_hash
config_hash.each do |k, v|
configuration.send("#{k}=", v) rescue nil if configuration.respond_to?("#{k}=")
end
end
yield(configuration) if block_given?
end
|
.evaluate(*args) ⇒ Object
34
35
36
|
# File 'lib/featureflow.rb', line 34
def evaluate(*args)
client.evaluate(*args)
end
|
.logger ⇒ Object
24
25
26
|
# File 'lib/featureflow.rb', line 24
def logger
configuration.logger
end
|