class TestKaferiCloud::FontStyles

Constants

BOLD
ITALIC
REGULAR

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/font_styles.rb, line 34
def build_from_hash(value)
  constantValues = FontStyles.constants.select{ |const_name| FontStyles.const_get(const_name) == value}
  raise "Invalid ENUM value #{value} for class #FontStyles" if constantValues.empty?
  value
  #constantValues[0]
end