Class: Evva::MixpanelEvent
- Inherits:
-
Object
- Object
- Evva::MixpanelEvent
- Defined in:
- lib/evva/mixpanel_event.rb
Instance Attribute Summary collapse
-
#event_name ⇒ Object
readonly
Returns the value of attribute event_name.
-
#properties ⇒ Object
readonly
Returns the value of attribute properties.
Instance Method Summary collapse
- #==(other) ⇒ Object
-
#initialize(event_name, properties = {}) ⇒ MixpanelEvent
constructor
A new instance of MixpanelEvent.
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_name ⇒ Object (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 |
#properties ⇒ Object (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 |