Module: Totango
- Defined in:
- lib/totango/client.rb,
lib/totango/config.rb,
lib/totango/adapter.rb,
lib/totango/tracker.rb,
lib/totango/version.rb,
lib/totango/resource.rb,
lib/totango/arg_parser.rb,
lib/totango/adapters/base.rb,
lib/totango/adapters/merb.rb,
lib/totango/adapters/rails.rb
Defined Under Namespace
Modules: Adapters, Resource
Classes: Adapter, ArgParser, Client, Config, InvalidParamError, NoAdapterError, NoClientError, Tracker
Constant Summary
collapse
- BASE_URI =
"http://sdr.totango.com/pixel.gif/?sdr_s=".freeze
- VERSION =
"0.1.6"
Class Attribute Summary collapse
Class Method Summary
collapse
Class Attribute Details
.adapter ⇒ Object
Returns the value of attribute adapter.
2
3
4
|
# File 'lib/totango/adapter.rb', line 2
def adapter
@adapter
end
|
.client ⇒ Object
Returns the value of attribute client.
7
8
9
|
# File 'lib/totango/client.rb', line 7
def client
@client
end
|
Class Method Details
.on! ⇒ Object
22
23
24
|
# File 'lib/totango/client.rb', line 22
def on!
Config[:on] = true
end
|
.on? ⇒ Boolean
18
19
20
|
# File 'lib/totango/client.rb', line 18
def on?
Config[:on]
end
|
.srv_id(srv_id) ⇒ Object
14
15
16
|
# File 'lib/totango/client.rb', line 14
def srv_id(srv_id)
@client = Client.new(srv_id)
end
|
.track(data) ⇒ Object
9
10
11
12
|
# File 'lib/totango/client.rb', line 9
def track(data)
raise NoClientError, "You must set the current client first" unless client
client.track(data)
end
|