Class: EnumVariable
Overview
Represents a variable declared in an Enum
Instance Method Summary collapse
-
#name ⇒ Object
The name of the EnumVariable.
-
#to_hash ⇒ Object
Hash representation of the EnumVariable.
-
#value ⇒ Object
The value of the EnumVariable.
Instance Method Details
#name ⇒ Object
The name of the EnumVariable
8 9 10 |
# File 'lib/steamd/nodes/enum_variable_node.rb', line 8 def name enum_variable_name.text_value end |
#to_hash ⇒ Object
Hash representation of the EnumVariable
18 19 20 21 22 23 |
# File 'lib/steamd/nodes/enum_variable_node.rb', line 18 def to_hash { name: name, value: value } end |
#value ⇒ Object
The value of the EnumVariable
13 14 15 |
# File 'lib/steamd/nodes/enum_variable_node.rb', line 13 def value enum_variable_value.value end |