Class: Evva::MixpanelEvent

Inherits:
Object
  • Object
show all
Defined in:
lib/evva/mixpanel_event.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(event_name, properties = {}) ⇒ MixpanelEvent

Returns a new instance of MixpanelEvent.



4
5
6
7
# File 'lib/evva/mixpanel_event.rb', line 4

def initialize(event_name, properties = {})
  @event_name = event_name
  @properties = properties
end

Instance Attribute Details

#event_nameObject (readonly)

Returns the value of attribute event_name.



3
4
5
# File 'lib/evva/mixpanel_event.rb', line 3

def event_name
  @event_name
end

#propertiesObject (readonly)

Returns the value of attribute properties.



3
4
5
# File 'lib/evva/mixpanel_event.rb', line 3

def properties
  @properties
end

Instance Method Details

#==(other) ⇒ Object



9
10
11
# File 'lib/evva/mixpanel_event.rb', line 9

def ==(other)
  event_name == other.event_name
end