Class: Ahoy::BaseStore
- Inherits:
-
Object
- Object
- Ahoy::BaseStore
- Defined in:
- lib/ahoy/base_store.rb
Direct Known Subclasses
Instance Attribute Summary collapse
Instance Method Summary collapse
- #authenticate(data) ⇒ Object
- #exclude? ⇒ Boolean
- #generate_id ⇒ Object
- #geocode(data) ⇒ Object
-
#initialize(options) ⇒ BaseStore
constructor
A new instance of BaseStore.
- #track_event(data) ⇒ Object
- #track_visit(data) ⇒ Object
- #visit ⇒ Object
- #visit_or_create ⇒ Object
Constructor Details
#initialize(options) ⇒ BaseStore
Returns a new instance of BaseStore.
5 6 7 |
# File 'lib/ahoy/base_store.rb', line 5 def initialize() @options = end |
Instance Attribute Details
Instance Method Details
#authenticate(data) ⇒ Object
18 19 |
# File 'lib/ahoy/base_store.rb', line 18 def authenticate(data) end |
#exclude? ⇒ Boolean
34 35 36 |
# File 'lib/ahoy/base_store.rb', line 34 def exclude? (!Ahoy.track_bots && bot?) || exclude_by_method? end |
#generate_id ⇒ Object
38 39 40 |
# File 'lib/ahoy/base_store.rb', line 38 def generate_id Ahoy.token_generator.call end |
#geocode(data) ⇒ Object
15 16 |
# File 'lib/ahoy/base_store.rb', line 15 def geocode(data) end |
#track_event(data) ⇒ Object
12 13 |
# File 'lib/ahoy/base_store.rb', line 12 def track_event(data) end |
#track_visit(data) ⇒ Object
9 10 |
# File 'lib/ahoy/base_store.rb', line 9 def track_visit(data) end |
#visit ⇒ Object
21 22 |
# File 'lib/ahoy/base_store.rb', line 21 def visit end |
#visit_or_create ⇒ Object
42 43 44 |
# File 'lib/ahoy/base_store.rb', line 42 def visit_or_create visit end |