Class: MixpanelTracker::Event

Inherits:
Object
  • Object
show all
Defined in:
lib/mixpanel_tracker/event.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(name, args = {}) ⇒ Event

Returns a new instance of Event.



5
6
7
# File 'lib/mixpanel_tracker/event.rb', line 5

def initialize(name, args = {})
  @name, @args = name, args
end

Instance Attribute Details

#argsObject (readonly)

Returns the value of attribute args.



3
4
5
# File 'lib/mixpanel_tracker/event.rb', line 3

def args
  @args
end

#nameObject (readonly)

Returns the value of attribute name.



3
4
5
# File 'lib/mixpanel_tracker/event.rb', line 3

def name
  @name
end