Class: SimpleEnumeration::Types::HashFactory
Instance Attribute Summary
Attributes inherited from BaseFactory
#definition, #enum_class
Instance Method Summary
collapse
Methods inherited from BaseFactory
#call, call, #initialize
Instance Method Details
#converted_value ⇒ Object
10
11
12
|
# File 'lib/simple_enumeration/types/hash_factory.rb', line 10
def converted_value
definition.first.last.to_s
end
|
#value ⇒ Object
6
7
8
|
# File 'lib/simple_enumeration/types/hash_factory.rb', line 6
def value
definition.first.first.to_s
end
|