class MessenteApi::ErrorCodeOmnichannelMachine

Constants

N0
N1
N10
N2
N3
N4
N5
N6
N7
N8
N9
N999

Public Class Methods

build_from_hash(value) click to toggle source

Builds the enum from string @param [String] The enum value in the form of the string @return [String] The enum value

# File lib/messente_api/models/error_code_omnichannel_machine.rb, line 33
def self.build_from_hash(value)
  new.build_from_hash(value)
end

Public Instance Methods

build_from_hash(value) click to toggle source

Builds the enum from string @param [String] The enum value in the form of the string @return [String] The enum value

# 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