Class: Bandwidth::BusinessRegistrationTypeEnum

Inherits:
Object
  • Object
show all
Defined in:
lib/bandwidth-sdk/models/business_registration_type_enum.rb

Constant Summary collapse

EIN =
'EIN'.freeze
CBN =
'CBN'.freeze
NEQ =
'NEQ'.freeze
PROVINCIAL_NUMBER =
'PROVINCIAL_NUMBER'.freeze
CRN =
'CRN'.freeze
VAT =
'VAT'.freeze
ACN =
'ACN'.freeze
ABN =
'ABN'.freeze
BRN =
'BRN'.freeze
SIREN =
'SIREN'.freeze
SIRET =
'SIRET'.freeze
NZBN =
'NZBN'.freeze
UST_IDNR =
'UST_IDNR'.freeze
CIF =
'CIF'.freeze
NIF =
'NIF'.freeze
CNPJ =
'CNPJ'.freeze
UID =
'UID'.freeze
OTHER =
'OTHER'.freeze

Class Method Summary collapse

Instance Method Summary collapse

Class Method Details

.all_varsObject



37
38
39
# File 'lib/bandwidth-sdk/models/business_registration_type_enum.rb', line 37

def self.all_vars
  @all_vars ||= [EIN, CBN, NEQ, PROVINCIAL_NUMBER, CRN, VAT, ACN, ABN, BRN, SIREN, SIRET, NZBN, UST_IDNR, CIF, NIF, CNPJ, UID, OTHER].freeze
end

.build_from_hash(value) ⇒ String

Builds the enum from string

Parameters:

  • enum value in the form of the string

Returns:

  • The enum value



44
45
46
# File 'lib/bandwidth-sdk/models/business_registration_type_enum.rb', line 44

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:

  • enum value in the form of the string

Returns:

  • The enum value



51
52
53
54
# File 'lib/bandwidth-sdk/models/business_registration_type_enum.rb', line 51

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