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