Sha256: 311be11b036db88b237121bd3744bb8e85e5a41416439eaeb1ac3610d5ebdad4

Contents?: true

Size: 533 Bytes

Versions: 1

Compression:

Stored size: 533 Bytes

Contents

require 'dashx/version'
require 'dashx/config'
require 'dashx/client'

module DashX
  @clients = {}

  def self.configure(client_name = :default)
    yield config = DashX::Config.new

    @clients[client_name] = DashX::Client.new(config)
  end

  def self.identify(uid = {}, options = {})
    @clients[:default].identify(uid, options)
  end

  def self.track(event, uid, data)
    @clients[:default].track(event, uid, data)
  end

  def self.generate_identity_token(uid)
    @clients[:default].generate_identity_token(uid)
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
dashx-0.1.0 lib/dashx.rb