Class: SimpleEnumeration::Types::HashFactory

Inherits:
BaseFactory
  • Object
show all
Defined in:
lib/simple_enumeration/types/hash_factory.rb

Instance Attribute Summary

Attributes inherited from BaseFactory

#definition, #enum_class

Instance Method Summary collapse

Methods inherited from BaseFactory

#call, call, #initialize

Constructor Details

This class inherits a constructor from SimpleEnumeration::Types::BaseFactory

Instance Method Details

#converted_valueObject



10
11
12
# File 'lib/simple_enumeration/types/hash_factory.rb', line 10

def converted_value
  definition.first.last.to_s
end

#valueObject



6
7
8
# File 'lib/simple_enumeration/types/hash_factory.rb', line 6

def value
  definition.first.first.to_s
end