Class: Evva::AnalyticsEvent
- Inherits:
-
Object
- Object
- Evva::AnalyticsEvent
- Defined in:
- lib/evva/analytics_event.rb
Instance Attribute Summary collapse
-
#destinations ⇒ Object
readonly
Returns the value of attribute destinations.
-
#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, destinations) ⇒ AnalyticsEvent
constructor
A new instance of AnalyticsEvent.
Constructor Details
#initialize(event_name, properties, destinations) ⇒ AnalyticsEvent
Returns a new instance of AnalyticsEvent.
5 6 7 8 9 |
# File 'lib/evva/analytics_event.rb', line 5 def initialize(event_name, properties, destinations) @event_name = event_name @properties = properties @destinations = destinations end |
Instance Attribute Details
#destinations ⇒ Object (readonly)
Returns the value of attribute destinations.
3 4 5 |
# File 'lib/evva/analytics_event.rb', line 3 def destinations @destinations end |
#event_name ⇒ Object (readonly)
Returns the value of attribute event_name.
3 4 5 |
# File 'lib/evva/analytics_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/analytics_event.rb', line 3 def properties @properties end |
Instance Method Details
#==(other) ⇒ Object
11 12 13 14 15 |
# File 'lib/evva/analytics_event.rb', line 11 def ==(other) event_name == other.event_name && properties == other.properties && destinations == other.destinations end |