Module: Fabes

Extended by:
Fabes
Included in:
Fabes
Defined in:
lib/fabes.rb,
lib/fabes/admin.rb,
lib/fabes/helper.rb,
lib/fabes/railtie.rb,
lib/fabes/experiment.rb,
lib/fabes/alternative.rb,
lib/fabes/configuration.rb,
lib/fabes/connection_adapters/redis_adapter.rb,
lib/fabes/connection_adapters/abstract_adapter.rb

Defined Under Namespace

Modules: ConnectionAdapters, ConnectionHandling, Helper Classes: Admin, Alternative, Configuration, Experiment, FabesRailtie

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#configurationObject

Returns the value of attribute configuration.



11
12
13
# File 'lib/fabes.rb', line 11

def configuration
  @configuration
end

Instance Method Details

#configure {|configuration| ... } ⇒ Object

Yields:



13
14
15
16
17
# File 'lib/fabes.rb', line 13

def configure
  self.configuration ||= Configuration.new
  yield(configuration) if block_given?
  configuration
end

#dbObject



19
20
21
# File 'lib/fabes.rb', line 19

def db
  @db ||= ConnectionHandling.establish_connection Fabes.configuration.database
end