Module: Ahoy
- Defined in:
- lib/ahoy.rb,
lib/ahoy/model.rb,
lib/ahoy/engine.rb,
lib/ahoy/tracker.rb,
lib/ahoy/version.rb,
lib/ahoy/throttle.rb,
lib/ahoy/controller.rb,
lib/ahoy/properties.rb,
lib/ahoy/geocode_job.rb,
lib/ahoy/logger_silencer.rb,
lib/ahoy/stores/log_store.rb,
lib/ahoy/stores/nsq_store.rb,
lib/ahoy/visit_properties.rb,
lib/ahoy/stores/base_store.rb,
lib/ahoy/stores/nats_store.rb,
lib/ahoy/stores/bunny_store.rb,
lib/ahoy/stores/kafka_store.rb,
lib/ahoy/stores/fluentd_store.rb,
lib/ahoy/stores/mongoid_store.rb,
lib/ahoy/subscribers/active_record.rb,
lib/ahoy/deckhands/request_deckhand.rb,
lib/ahoy/stores/active_record_store.rb,
app/controllers/ahoy/base_controller.rb,
lib/ahoy/deckhands/location_deckhand.rb,
app/controllers/ahoy/events_controller.rb,
app/controllers/ahoy/visits_controller.rb,
lib/ahoy/deckhands/technology_deckhand.rb,
lib/ahoy/stores/kinesis_firehose_store.rb,
lib/generators/ahoy/stores/log_generator.rb,
lib/generators/ahoy/stores/nsq_generator.rb,
lib/ahoy/deckhands/utm_parameter_deckhand.rb,
lib/ahoy/stores/active_record_token_store.rb,
lib/generators/ahoy/stores/nats_generator.rb,
lib/ahoy/deckhands/traffic_source_deckhand.rb,
lib/generators/ahoy/stores/bunny_generator.rb,
lib/generators/ahoy/stores/kafka_generator.rb,
lib/generators/ahoy/stores/custom_generator.rb,
lib/generators/ahoy/stores/fluentd_generator.rb,
lib/generators/ahoy/stores/mongoid_generator.rb,
lib/generators/ahoy/stores/active_record_generator.rb,
lib/generators/ahoy/stores/mongoid_events_generator.rb,
lib/generators/ahoy/stores/mongoid_visits_generator.rb,
lib/generators/ahoy/stores/kinesis_firehose_generator.rb,
lib/generators/ahoy/stores/active_record_events_generator.rb,
lib/generators/ahoy/stores/active_record_visits_generator.rb
Defined Under Namespace
Modules: Controller, Deckhands, LoggerSilencer, Model, Properties, Stores, Subscribers Classes: BaseController, Engine, Event, EventsController, GeocodeJob, Store, Throttle, Tracker, VisitProperties, VisitsController
Constant Summary collapse
- UUID_NAMESPACE =
UUIDTools::UUID.parse("a82ae811-5011-45ab-a728-569df7499c5f")
- VERSION =
"1.6.0"
Class Method Summary collapse
Class Method Details
.ensure_uuid(id) ⇒ Object
95 96 97 98 99 100 101 102 |
# File 'lib/ahoy.rb', line 95 def self.ensure_uuid(id) valid = UUIDTools::UUID.parse(id) rescue nil if valid id else UUIDTools::UUID.sha1_create(UUID_NAMESPACE, id).to_s end end |