Sha256: e46ba845bd8fe7f4d5753146f4c8e975ecf28a9336e27adb8b1e59a8f824c84c

Contents?: true

Size: 608 Bytes

Versions: 2

Compression:

Stored size: 608 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.deliver(urn, parcel)
    @clients[:default].deliver(urn, parcel)
  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

2 entries across 2 versions & 1 rubygems

Version Path
dashx-0.1.3 lib/dashx.rb
dashx-0.1.2 lib/dashx.rb