Class: Evva::AnalyticsEnum

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(enum_name, values) ⇒ AnalyticsEnum

Returns a new instance of AnalyticsEnum.



5
6
7
8
# File 'lib/evva/analytics_enum.rb', line 5

def initialize(enum_name, values)
  @enum_name = enum_name
  @values = values
end

Instance Attribute Details

#enum_nameObject (readonly)

Returns the value of attribute enum_name.



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

def enum_name
  @enum_name
end

#valuesObject (readonly)

Returns the value of attribute values.



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

def values
  @values
end

Instance Method Details

#==(other) ⇒ Object



10
11
12
13
# File 'lib/evva/analytics_enum.rb', line 10

def ==(other)
  enum_name == other.enum_name
  values == other.values
end