Class: Bandwidth::BusinessRegistrationTypeEnum
- Inherits:
-
Object
- Object
- Bandwidth::BusinessRegistrationTypeEnum
- 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
- .all_vars ⇒ Object
-
.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
.all_vars ⇒ Object
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
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
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 |