Class: WsdlMapper::Naming::EnumerationValueName

Inherits:
Object
  • Object
show all
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)

Instance Method Summary (collapse)

Constructor Details

- (EnumerationValueName) initialize(constant_name, key_name)

Returns a new instance of EnumerationValueName

Parameters:

  • constant_name (String)

    Name for the constant to generate.

  • key_name (String)

    String value.



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

- (Object) constant_name (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

- (Object) key_name (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