Class: MixpanelTyphoeus
- Inherits:
-
MonsterMash::Base
- Object
- MonsterMash::Base
- MixpanelTyphoeus
- Defined in:
- lib/mixpanel_typhoeus.rb,
lib/mixpanel_typhoeus/support.rb
Defined Under Namespace
Modules: Support
Class Attribute Summary collapse
-
.token ⇒ Object
Returns the value of attribute token.
Class Method Summary collapse
Class Attribute Details
.token ⇒ Object
Returns the value of attribute token.
6 7 8 |
# File 'lib/mixpanel_typhoeus.rb', line 6 def token @token end |
Class Method Details
.check_for_unique_id!(properties) ⇒ Object
34 35 36 37 38 39 |
# File 'lib/mixpanel_typhoeus.rb', line 34 def self.check_for_unique_id!(properties) if !properties.has_key?(:ip) && !properties.has_key?('ip') && !properties.has_key?(:distinct_id) && !properties.has_key?('distinct_id') raise ArgumentError, "Mixpanel requires you to pass either the 'ip' property or 'distinct_id', for a unique ID." end end |