Class: Freeclimb::GrammarFileBuiltIn
- Inherits:
-
Object
- Object
- Freeclimb::GrammarFileBuiltIn
- Defined in:
- lib/freeclimb/models/grammar_file_built_in.rb
Constant Summary collapse
- ALPHNUM6 =
"ALPHNUM6".freeze
- ANY_DIG =
"ANY_DIG".freeze
- DIG1 =
"DIG1".freeze
- DIG2 =
"DIG2".freeze
- DIG3 =
"DIG3".freeze
- DIG4 =
"DIG4".freeze
- DIG5 =
"DIG5".freeze
- DIG6 =
"DIG6".freeze
- DIG7 =
"DIG7".freeze
- DIG8 =
"DIG8".freeze
- DIG9 =
"DIG9".freeze
- DIG10 =
"DIG10".freeze
- DIG11 =
"DIG11".freeze
- UP_TO_20_DIGIT_SEQUENCE =
"UP_TO_20_DIGIT_SEQUENCE".freeze
- VERSAY_YESNO =
"VERSAY_YESNO".freeze
Class Method Summary collapse
-
.build_from_hash(value) ⇒ String
Builds the enum from string.
Instance Method Summary collapse
-
#build_from_hash(value) ⇒ String
Builds the enum from string.
Class Method Details
.build_from_hash(value) ⇒ String
Builds the enum from string
37 38 39 |
# File 'lib/freeclimb/models/grammar_file_built_in.rb', line 37 def self.build_from_hash(value) new.build_from_hash(value) end |
Instance Method Details
#build_from_hash(value) ⇒ String
Builds the enum from string
44 45 46 47 48 |
# File 'lib/freeclimb/models/grammar_file_built_in.rb', line 44 def build_from_hash(value) constantValues = GrammarFileBuiltIn.constants.select { |c| GrammarFileBuiltIn::const_get(c) == value } raise "Invalid ENUM value #{value} for class #GrammarFileBuiltIn" if constantValues.empty? value end |