Class: WsdlMapper::Naming::EnumerationValueName
- Inherits:
-
Object
- Object
- WsdlMapper::Naming::EnumerationValueName
- Defined in:
- lib/wsdl_mapper/naming/enumeration_value_name.rb
Overview
Represents the value of an enumeration value, consisting of the constant to generate and the string key, that will be the enumeration value.
Instance Attribute Summary collapse
-
#constant_name ⇒ Object
readonly
Returns the value of attribute constant_name.
-
#key_name ⇒ Object
readonly
Returns the value of attribute key_name.
Instance Method Summary collapse
-
#initialize(constant_name, key_name) ⇒ EnumerationValueName
constructor
A new instance of EnumerationValueName.
Constructor Details
#initialize(constant_name, key_name) ⇒ EnumerationValueName
Returns a new instance of EnumerationValueName.
10 11 12 13 |
# File 'lib/wsdl_mapper/naming/enumeration_value_name.rb', line 10 def initialize(constant_name, key_name) @constant_name = constant_name @key_name = key_name end |
Instance Attribute Details
#constant_name ⇒ Object (readonly)
Returns the value of attribute constant_name.
6 7 8 |
# File 'lib/wsdl_mapper/naming/enumeration_value_name.rb', line 6 def constant_name @constant_name end |
#key_name ⇒ Object (readonly)
Returns the value of attribute key_name.
6 7 8 |
# File 'lib/wsdl_mapper/naming/enumeration_value_name.rb', line 6 def key_name @key_name end |