Class: MessenteApi::ErrorCodeOmnichannelMachine
- Inherits:
-
Object
- Object
- MessenteApi::ErrorCodeOmnichannelMachine
- Defined in:
- lib/messente_api/models/error_code_omnichannel_machine.rb
Constant Summary collapse
- N0 =
0.freeze
- N1 =
1.freeze
- N2 =
2.freeze
- N3 =
3.freeze
- N4 =
4.freeze
- N5 =
5.freeze
- N6 =
6.freeze
- N7 =
7.freeze
- N8 =
8.freeze
- N9 =
9.freeze
- N10 =
10.freeze
- N999 =
999.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
33 34 35 |
# File 'lib/messente_api/models/error_code_omnichannel_machine.rb', line 33 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
40 41 42 43 44 |
# File 'lib/messente_api/models/error_code_omnichannel_machine.rb', line 40 def build_from_hash(value) constantValues = ErrorCodeOmnichannelMachine.constants.select { |c| ErrorCodeOmnichannelMachine::const_get(c) == value } raise "Invalid ENUM value #{value} for class #ErrorCodeOmnichannelMachine" if constantValues.empty? value end |