Class: Satellite::TrackerInterface
Instance Method Summary collapse
- #[](key) ⇒ Object
- #[]=(key, value) ⇒ Object
-
#initialize(adapter) ⇒ TrackerInterface
constructor
A new instance of TrackerInterface.
- #set_custom_variable(slot, name, value, scope = nil) ⇒ Object
- #track_event(category, action, label = nil, value = nil) ⇒ Object
- #track_page_view(path = nil) ⇒ Object
- #tracking_url ⇒ Object
- #type ⇒ Object
- #unset_custom_variable(slot) ⇒ Object
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_url ⇒ Object
37 38 39 |
# File 'lib/satellite.rb', line 37 def tracking_url @adapter.tracking_url end |
#type ⇒ Object
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 |