Class: CybridApiBank::VerificationCheckTypeBankModel

Inherits:
Object
  • Object
show all
Defined in:
lib/cybrid_api_bank_ruby/models/verification_check_type_bank_model.rb

Constant Summary collapse

BUSINESS_WATCHLISTS =
"business_watchlists".freeze
BUSINESS_VERIFICATION =
"business_verification".freeze
BUSINESS_TAX_ID_VERIFICATION =
"business_tax_id_verification".freeze
PERSON_ATTESTED =
"person_attested".freeze
PERSON_TAX_ID_ATTESTED =
"person_tax_id_attested".freeze
PERSON_WATCHLISTS =
"person_watchlists".freeze
PERSON_VERIFICATION =
"person_verification".freeze
PERSON_AUTHENTICATION =
"person_authentication".freeze
PERSON_GOV_ID_VERIFICATION =
"person_gov_id_verification".freeze
PERSON_TAX_ID_VERIFICATION =
"person_tax_id_verification".freeze

Class Method Summary collapse

Instance Method Summary collapse

Class 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



32
33
34
# File 'lib/cybrid_api_bank_ruby/models/verification_check_type_bank_model.rb', line 32

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



39
40
41
42
43
# File 'lib/cybrid_api_bank_ruby/models/verification_check_type_bank_model.rb', line 39

def build_from_hash(value)
  constantValues = VerificationCheckTypeBankModel.constants.select { |c| VerificationCheckTypeBankModel::const_get(c) == value }
  raise "Invalid ENUM value #{value} for class #VerificationCheckTypeBankModel" if constantValues.empty?
  value
end