module Totango
Constants
- VERSION
Attributes
configuration[RW]
Public Class Methods
build_event(event_attributes)
click to toggle source
# File lib/totango.rb, line 20 def build_event(event_attributes) event = Event.new(event_attributes) event.service_id = configuration.service_id if configuration event end
configure() { |configuration| ... }
click to toggle source
# File lib/totango.rb, line 11 def configure self.configuration ||= Configuration.new yield(configuration) end
track(event_attributes)
click to toggle source
# File lib/totango.rb, line 16 def track(event_attributes) Excon.get(build_event(event_attributes).to_url) end