Class: UnitOpenapiRubySdk::SourceOfIncome
- Inherits:
-
Object
- Object
- UnitOpenapiRubySdk::SourceOfIncome
- Defined in:
- lib/unit_openapi_ruby_sdk/models/source_of_income.rb
Constant Summary collapse
- EMPLOYMENT_OR_PAYROLL_INCOME =
"EmploymentOrPayrollIncome".freeze
- PART_TIME_OR_CONTRACTOR_INCOME =
"PartTimeOrContractorIncome".freeze
- INHERITANCES_AND_GIFTS =
"InheritancesAndGifts".freeze
- PERSONAL_INVESTMENTS =
"PersonalInvestments".freeze
- BUSINESS_OWNERSHIP_INTERESTS =
"BusinessOwnershipInterests".freeze
- GOVERNMENT_BENEFITS =
"GovernmentBenefits".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/source_of_income.rb', line 25 def self.all_vars @all_vars ||= [EMPLOYMENT_OR_PAYROLL_INCOME, PART_TIME_OR_CONTRACTOR_INCOME, INHERITANCES_AND_GIFTS, PERSONAL_INVESTMENTS, BUSINESS_OWNERSHIP_INTERESTS, GOVERNMENT_BENEFITS].freeze end |
.build_from_hash(value) ⇒ String
Builds the enum from string
32 33 34 |
# File 'lib/unit_openapi_ruby_sdk/models/source_of_income.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/source_of_income.rb', line 39 def build_from_hash(value) return value if SourceOfIncome.all_vars.include?(value) raise "Invalid ENUM value #{value} for class #SourceOfIncome" end |