Sha256: 2e20c180eb014a4fff24f76f95f46ea196237acb6f1107a3e9100eba973f1d07

Contents?: true

Size: 359 Bytes

Versions: 2

Compression:

Stored size: 359 Bytes

Contents

module Remetric
  class Engine < ::Rails::Engine
    isolate_namespace Remetric
  end
  
  def self.config(&block)
    @@config ||= Remetric::Engine::Configuration.new
    yield @@config if block
    return @@config
  end
  
  def self.track data = {}
    Thread.new {
      Event.create data
    }
  end
  
  def self.version
    Remetric::VERSION
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
remetric-0.0.5 lib/remetric/engine.rb
remetric-0.0.4 lib/remetric/engine.rb