Module: DashX
- Defined in:
- lib/dashx.rb,
lib/dashx/client.rb,
lib/dashx/config.rb,
lib/dashx/version.rb
Defined Under Namespace
Classes: Client, Config, ConfigurationError
Constant Summary
collapse
- VERSION =
'0.11.0'.freeze
Class Method Summary
collapse
Class Method Details
8
9
10
11
12
13
14
|
# File 'lib/dashx.rb', line 8
def self.configure(client_name = :default)
yield config = DashX::Config.new
config.validate!
@clients[client_name] = DashX::Client.new(config)
end
|
.deliver(urn, parcel) ⇒ Object
16
17
18
|
# File 'lib/dashx.rb', line 16
def self.deliver(urn, parcel)
@clients[:default].deliver(urn, parcel)
end
|
32
33
34
|
# File 'lib/dashx.rb', line 32
def self.fetch_contacts(uid)
@clients[:default].fetch_contacts(uid)
end
|
.fetch_item(identifier) ⇒ Object
36
37
38
|
# File 'lib/dashx.rb', line 36
def self.fetch_item(identifier)
@clients[:default].fetch_item(identifier)
end
|
.fetch_stored_preferences(uid) ⇒ Object
40
41
42
|
# File 'lib/dashx.rb', line 40
def self.fetch_stored_preferences(uid)
@clients[:default].fetch_stored_preferences(uid)
end
|
.identify(uid, options) ⇒ Object
20
21
22
|
# File 'lib/dashx.rb', line 20
def self.identify(uid, options)
@clients[:default].identify(uid, options)
end
|
28
29
30
|
# File 'lib/dashx.rb', line 28
def self.save_contacts(uid, contacts)
@clients[:default].save_contacts(uid, contacts)
end
|
.save_stored_preferences(uid, preferenceData) ⇒ Object
44
45
46
|
# File 'lib/dashx.rb', line 44
def self.save_stored_preferences(uid, preferenceData)
@clients[:default].save_stored_preferences(uid, preferenceData)
end
|
.track(event, uid, data) ⇒ Object
24
25
26
|
# File 'lib/dashx.rb', line 24
def self.track(event, uid, data)
@clients[:default].track(event, uid, data)
end
|