Class: Mengpaneel::Tracker::People

Inherits:
Mixpanel::People
  • Object
show all
Defined in:
lib/mengpaneel/tracker.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(tracker) ⇒ People

Returns a new instance of People.


75
76
77
78
79
# File 'lib/mengpaneel/tracker.rb', line 75

def initialize(tracker)
  @tracker = tracker
  
  super(tracker.token)
end

Instance Attribute Details

#trackerObject (readonly)

Returns the value of attribute tracker


73
74
75
# File 'lib/mengpaneel/tracker.rb', line 73

def tracker
  @tracker
end

Instance Method Details

#update(message) ⇒ Object


88
89
90
91
92
# File 'lib/mengpaneel/tracker.rb', line 88

def update(message)
  message["$ip"] = tracker.remote_ip

  super(message)
end