Class: Satellite::TrackerInterface

Inherits:
Object
  • Object
show all
Defined in:
lib/satellite.rb

Instance Method Summary collapse

Constructor Details

#initialize(adapter) ⇒ TrackerInterface

Returns a new instance of TrackerInterface.



17
18
19
# File 'lib/satellite.rb', line 17

def initialize(adapter)
  @adapter = adapter
end

Instance Method Details

#[](key) ⇒ Object



49
50
51
# File 'lib/satellite.rb', line 49

def [](key)
  @adapter[key]
end

#[]=(key, value) ⇒ Object



45
46
47
# File 'lib/satellite.rb', line 45

def []=(key, value)
  @adapter[key] = value
end

#set_custom_variable(slot, name, value, scope = nil) ⇒ Object



29
30
31
# File 'lib/satellite.rb', line 29

def set_custom_variable(slot, name, value, scope=nil)
  @adapter.set_custom_variable(slot, name, value, scope)
end

#track_event(category, action, label = nil, value = nil) ⇒ Object



25
26
27
# File 'lib/satellite.rb', line 25

def track_event(category, action, label=nil, value=nil)
  @adapter.track_event(category, action, label, value)
end

#track_page_view(path = nil) ⇒ Object



21
22
23
# File 'lib/satellite.rb', line 21

def track_page_view(path=nil)
  @adapter.track_page_view(path)
end

#tracking_urlObject



37
38
39
# File 'lib/satellite.rb', line 37

def tracking_url
  @adapter.tracking_url
end

#typeObject



41
42
43
# File 'lib/satellite.rb', line 41

def type
  @adapter.class
end

#unset_custom_variable(slot) ⇒ Object



33
34
35
# File 'lib/satellite.rb', line 33

def unset_custom_variable(slot)
  @adapter.unset_custom_variable(slot)
end