Class: Evva::AnalyticsEvent

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

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#destinationsObject (readonly)

Returns the value of attribute destinations.



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

def destinations
  @destinations
end

#event_nameObject (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

#propertiesObject (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