Class: TheTracker::Trackers::Base

Inherits:
Object
  • Object
show all
Defined in:
lib/the_tracker/trackers/base.rb

Overview

Base class for trackers

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeBase

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

#activeObject

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_bottomObject

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_topObject

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

#headerObject

code that should appear on the header section



17
18
19
# File 'lib/the_tracker/trackers/base.rb', line 17

def header
  []
end

#nameObject

public name

Raises:

  • (NotImplementedError)


12
13
14
# File 'lib/the_tracker/trackers/base.rb', line 12

def name
  raise NotImplementedError
end