class TestKaferiCloud::StampType
Constants
- IMAGE
- PAGE
- PAGE_NUMBER
- TEXT
Public Instance Methods
build_from_hash(value)
click to toggle source
Builds the enum from string @param [Fixnum] The enum value in the form of the string @return [Fixnum] The enum value
# File lib/test_kaferi_cloud/models/stamp_type.rb, line 35 def build_from_hash(value) constantValues = StampType.constants.select{ |const_name| StampType.const_get(const_name) == value} raise "Invalid ENUM value #{value} for class #StampType" if constantValues.empty? value #constantValues[0] end