Class: UnitOpenapiRubySdk::ThreadApplicationEntityType
- Inherits:
-
Object
- Object
- UnitOpenapiRubySdk::ThreadApplicationEntityType
- Defined in:
- lib/unit_openapi_ruby_sdk/models/thread_application_entity_type.rb
Constant Summary collapse
- ESTATE =
"Estate".freeze
- TRUST =
"Trust".freeze
- FOREIGN_FINANCIAL_INSTITUTION =
"ForeignFinancialInstitution".freeze
- DOMESTIC_FINANCIAL_INSTITUTION =
"DomesticFinancialInstitution".freeze
- GOVERNMENT_ENTITY_OR_AGENCY =
"GovernmentEntityOrAgency".freeze
- RELIGIOUS_ORGANIZATION =
"ReligiousOrganization".freeze
- CHARITY =
"Charity".freeze
- LLC =
"LLC".freeze
- PARTNERSHIP =
"Partnership".freeze
- PUBLICLY_TRADED_CORPORATION =
"PubliclyTradedCorporation".freeze
- PRIVATELY_HELD_CORPORATION =
"PrivatelyHeldCorporation".freeze
- NOT_FOR_PROFIT_ORGANIZATION =
"NotForProfitOrganization".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
31 32 33 |
# File 'lib/unit_openapi_ruby_sdk/models/thread_application_entity_type.rb', line 31 def self.all_vars @all_vars ||= [ESTATE, TRUST, FOREIGN_FINANCIAL_INSTITUTION, DOMESTIC_FINANCIAL_INSTITUTION, GOVERNMENT_ENTITY_OR_AGENCY, RELIGIOUS_ORGANIZATION, CHARITY, LLC, PARTNERSHIP, PUBLICLY_TRADED_CORPORATION, PRIVATELY_HELD_CORPORATION, NOT_FOR_PROFIT_ORGANIZATION].freeze end |
.build_from_hash(value) ⇒ String
Builds the enum from string
38 39 40 |
# File 'lib/unit_openapi_ruby_sdk/models/thread_application_entity_type.rb', line 38 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
45 46 47 48 |
# File 'lib/unit_openapi_ruby_sdk/models/thread_application_entity_type.rb', line 45 def build_from_hash(value) return value if ThreadApplicationEntityType.all_vars.include?(value) raise "Invalid ENUM value #{value} for class #ThreadApplicationEntityType" end |