Class: Ahoy::Store

Inherits:
Ahoy::Stores::KinesisFirehoseStore show all
Defined in:
lib/generators/ahoy/stores/templates/log_initializer.rb,
lib/generators/ahoy/stores/templates/nsq_initializer.rb,
lib/generators/ahoy/stores/templates/nats_initializer.rb,
lib/generators/ahoy/stores/templates/bunny_initializer.rb,
lib/generators/ahoy/stores/templates/kafka_initializer.rb,
lib/generators/ahoy/stores/templates/custom_initializer.rb,
lib/generators/ahoy/stores/templates/fluentd_initializer.rb,
lib/generators/ahoy/stores/templates/mongoid_initializer.rb,
lib/generators/ahoy/stores/templates/active_record_initializer.rb,
lib/generators/ahoy/stores/templates/kinesis_firehose_initializer.rb

Instance Method Summary collapse

Methods inherited from Ahoy::Stores::KinesisFirehoseStore

#client, #log_event, #log_visit, #post

Methods inherited from Ahoy::Stores::BaseStore

#authenticate, #exclude?, #generate_id, #initialize, #report_exception, #user, #visit

Constructor Details

This class inherits a constructor from Ahoy::Stores::BaseStore

Instance Method Details

#credentialsObject



2
3
4
5
6
7
8
# File 'lib/generators/ahoy/stores/templates/kinesis_firehose_initializer.rb', line 2

def credentials
  {
    access_key_id: ENV["AWS_ACCESS_KEY_ID"],
    secret_access_key: ENV["AWS_SECRET_ACCESS_KEY"],
    region: "us-east-1"
  }
end

#current_visitObject



8
9
# File 'lib/generators/ahoy/stores/templates/custom_initializer.rb', line 8

def current_visit
end

#events_queueObject



6
7
8
# File 'lib/generators/ahoy/stores/templates/bunny_initializer.rb', line 6

def events_queue
  "ahoy_events"
end

#events_streamObject



14
15
16
# File 'lib/generators/ahoy/stores/templates/kinesis_firehose_initializer.rb', line 14

def events_stream
  "ahoy_events"
end

#events_subjectObject



6
7
8
# File 'lib/generators/ahoy/stores/templates/nats_initializer.rb', line 6

def events_subject
  "ahoy_events"
end

#events_topicObject



6
7
8
# File 'lib/generators/ahoy/stores/templates/nsq_initializer.rb', line 6

def events_topic
  "ahoy_events"
end

#track_event(name, properties, options) ⇒ Object



5
6
# File 'lib/generators/ahoy/stores/templates/custom_initializer.rb', line 5

def track_event(name, properties, options)
end

#track_visit(options) ⇒ Object



2
3
# File 'lib/generators/ahoy/stores/templates/custom_initializer.rb', line 2

def track_visit(options)
end

#visits_queueObject



2
3
4
# File 'lib/generators/ahoy/stores/templates/bunny_initializer.rb', line 2

def visits_queue
  "ahoy_visits"
end

#visits_streamObject



10
11
12
# File 'lib/generators/ahoy/stores/templates/kinesis_firehose_initializer.rb', line 10

def visits_stream
  "ahoy_visits"
end

#visits_subjectObject



2
3
4
# File 'lib/generators/ahoy/stores/templates/nats_initializer.rb', line 2

def visits_subject
  "ahoy_visits"
end

#visits_topicObject



2
3
4
# File 'lib/generators/ahoy/stores/templates/nsq_initializer.rb', line 2

def visits_topic
  "ahoy_visits"
end