Module: FluidFeatures

Defined in:
lib/fluidfeatures.rb,
lib/fluidfeatures/app.rb,
lib/fluidfeatures/const.rb,
lib/fluidfeatures/client.rb,
lib/fluidfeatures/config.rb,
lib/fluidfeatures/version.rb,
lib/fluidfeatures/app/user.rb,
lib/fluidfeatures/app/state.rb,
lib/fluidfeatures/app/feature.rb,
lib/fluidfeatures/app/reporter.rb,
lib/fluidfeatures/app/transaction.rb,
lib/fluidfeatures/persistence/buckets.rb,
lib/fluidfeatures/persistence/storage.rb,
lib/fluidfeatures/persistence/features.rb

Defined Under Namespace

Modules: Persistence Classes: App, AppFeatureVersion, AppReporter, AppState, AppUser, AppUserTransaction, Client, Config

Constant Summary collapse

DEFAULT_VERSION_NAME =
"default"
VERSION =
'0.6.1'

Class Attribute Summary collapse

Class Method Summary collapse

Class Attribute Details

.configObject

Returns the value of attribute config.



15
16
17
# File 'lib/fluidfeatures.rb', line 15

def config
  @config
end

Class Method Details

.app(config, logger = nil) ⇒ Object



18
19
20
21
22
23
# File 'lib/fluidfeatures.rb', line 18

def self.app(config, logger=nil)
  logger ||= ::Logger.new(STDERR)
  self.config = config
  client = ::FluidFeatures::Client.new(config["base_uri"], logger)
  ::FluidFeatures::App.new(client, config["app_id"], config["secret"], logger)
end