Module: AARRR

Defined in:
lib/aarrr.rb,
lib/aarrr/config.rb,
lib/aarrr/session.rb,
lib/aarrr/middleware.rb

Defined Under Namespace

Modules: Config Classes: Middleware, Session

Class Method Summary collapse

Class Method Details

.configureConfig Also known as: config

Sets the Mongoid configuration options. Best used by passing a block.

Examples:

Set up configuration options.


AARRR.configure do |config|
  config.database = Mongo::Connection.new.db("metrics")
end

Returns:

  • (Config)

    The configuration obejct.



43
44
45
46
# File 'lib/aarrr.rb', line 43

def configure
  config = AARRR::Config
  block_given? ? yield(config) : config
end