Class: TheTracker::Trackers::Base
- Inherits:
-
Object
- Object
- TheTracker::Trackers::Base
- Defined in:
- lib/the_tracker/trackers/base.rb
Overview
Base class for trackers
Direct Known Subclasses
AdForm, GAdServices, GAnalytics, GUniversal, Gtm, Kenshoo, Relevant, Uservoice
Instance Attribute Summary collapse
-
#active ⇒ Object
Returns the value of attribute active.
Instance Method Summary collapse
-
#body_bottom ⇒ Object
code that should appear on the body bottom section.
-
#body_top ⇒ Object
code that should appear on the body top section.
-
#header ⇒ Object
code that should appear on the header section.
-
#initialize ⇒ Base
constructor
A new instance of Base.
-
#name ⇒ Object
public name.
Constructor Details
#initialize ⇒ Base
Returns a new instance of Base.
7 8 9 |
# File 'lib/the_tracker/trackers/base.rb', line 7 def initialize @active = true end |
Instance Attribute Details
#active ⇒ Object
Returns the value of attribute active.
5 6 7 |
# File 'lib/the_tracker/trackers/base.rb', line 5 def active @active end |
Instance Method Details
#body_bottom ⇒ Object
code that should appear on the body bottom section
27 28 29 |
# File 'lib/the_tracker/trackers/base.rb', line 27 def body_bottom [] end |
#body_top ⇒ Object
code that should appear on the body top section
22 23 24 |
# File 'lib/the_tracker/trackers/base.rb', line 22 def body_top [] end |
#header ⇒ Object
code that should appear on the header section
17 18 19 |
# File 'lib/the_tracker/trackers/base.rb', line 17 def header [] end |
#name ⇒ Object
public name
12 13 14 |
# File 'lib/the_tracker/trackers/base.rb', line 12 def name raise NotImplementedError end |