Class: MixpanelTracker::Event
- Inherits:
-
Object
- Object
- MixpanelTracker::Event
- Defined in:
- lib/mixpanel_tracker/event.rb
Instance Attribute Summary collapse
-
#args ⇒ Object
readonly
Returns the value of attribute args.
-
#name ⇒ Object
readonly
Returns the value of attribute name.
Instance Method Summary collapse
-
#initialize(name, args = {}) ⇒ Event
constructor
A new instance of Event.
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
#args ⇒ Object (readonly)
Returns the value of attribute args.
3 4 5 |
# File 'lib/mixpanel_tracker/event.rb', line 3 def args @args end |
#name ⇒ Object (readonly)
Returns the value of attribute name.
3 4 5 |
# File 'lib/mixpanel_tracker/event.rb', line 3 def name @name end |