Class: UnitOpenapiRubySdk::ThreadApplicationEntityType

Inherits:
Object
  • Object
show all
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

Instance Method Summary collapse

Class Method Details

.all_varsObject



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

Parameters:

  • The (String)

    enum value in the form of the string

Returns:

  • (String)

    The enum value



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

Parameters:

  • The (String)

    enum value in the form of the string

Returns:

  • (String)

    The enum value



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