Class: UnitOpenapiRubySdk::BusinessAnnualRevenue
- Inherits:
-
Object
- Object
- UnitOpenapiRubySdk::BusinessAnnualRevenue
- Defined in:
- lib/unit_openapi_ruby_sdk/models/business_annual_revenue.rb
Constant Summary collapse
- UP_TO250K =
"UpTo250k".freeze
- BETWEEN250K_AND500K =
"Between250kAnd500k".freeze
- BETWEEN500K_AND1M =
"Between500kAnd1m".freeze
- BETWEEN1M_AND5M =
"Between1mAnd5m".freeze
- OVER5M =
"Over5m".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
24 25 26 |
# File 'lib/unit_openapi_ruby_sdk/models/business_annual_revenue.rb', line 24 def self.all_vars @all_vars ||= [UP_TO250K, BETWEEN250K_AND500K, BETWEEN500K_AND1M, BETWEEN1M_AND5M, OVER5M].freeze end |
.build_from_hash(value) ⇒ String
Builds the enum from string
31 32 33 |
# File 'lib/unit_openapi_ruby_sdk/models/business_annual_revenue.rb', line 31 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
38 39 40 41 |
# File 'lib/unit_openapi_ruby_sdk/models/business_annual_revenue.rb', line 38 def build_from_hash(value) return value if BusinessAnnualRevenue.all_vars.include?(value) raise "Invalid ENUM value #{value} for class #BusinessAnnualRevenue" end |