Class: UnitOpenapiRubySdk::EntityType
- Inherits:
-
Object
- Object
- UnitOpenapiRubySdk::EntityType
- Defined in:
- lib/unit_openapi_ruby_sdk/models/entity_type.rb
Constant Summary collapse
- CORPORATION =
"Corporation".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
25 26 27 |
# File 'lib/unit_openapi_ruby_sdk/models/entity_type.rb', line 25 def self.all_vars @all_vars ||= [CORPORATION, LLC, PARTNERSHIP, PUBLICLY_TRADED_CORPORATION, PRIVATELY_HELD_CORPORATION, NOT_FOR_PROFIT_ORGANIZATION].freeze end |
.build_from_hash(value) ⇒ String
Builds the enum from string
32 33 34 |
# File 'lib/unit_openapi_ruby_sdk/models/entity_type.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
39 40 41 42 |
# File 'lib/unit_openapi_ruby_sdk/models/entity_type.rb', line 39 def build_from_hash(value) return value if EntityType.all_vars.include?(value) raise "Invalid ENUM value #{value} for class #EntityType" end |