Class: SyncteraRubySdk::Status2

Inherits:
Object
  • Object
show all
Defined in:
lib/synctera_ruby_sdk/models/status2.rb

Constant Summary collapse

ACTIVE =
"ACTIVE".freeze
DECEASED =
"DECEASED".freeze
DENIED =
"DENIED".freeze
DORMANT =
"DORMANT".freeze
ESCHEAT =
"ESCHEAT".freeze
FROZEN =
"FROZEN".freeze
INACTIVE =
"INACTIVE".freeze
PROSPECT =
"PROSPECT".freeze
SANCTION =
"SANCTION".freeze

Class Method Summary collapse

Instance Method Summary collapse

Class Method Details

.all_varsObject



28
29
30
# File 'lib/synctera_ruby_sdk/models/status2.rb', line 28

def self.all_vars
  @all_vars ||= [ACTIVE, DECEASED, DENIED, DORMANT, ESCHEAT, FROZEN, INACTIVE, PROSPECT, SANCTION].freeze
end

.build_from_hash(value) ⇒ String

Builds the enum from string

Parameters:

  • The (String)

    enum value in the form of the string

Returns:

  • (String)

    The enum value



35
36
37
# File 'lib/synctera_ruby_sdk/models/status2.rb', line 35

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

Parameters:

  • The (String)

    enum value in the form of the string

Returns:

  • (String)

    The enum value



42
43
44
45
# File 'lib/synctera_ruby_sdk/models/status2.rb', line 42

def build_from_hash(value)
  return value if Status2.all_vars.include?(value)
  raise "Invalid ENUM value #{value} for class #Status2"
end