Class: UnitOpenapiRubySdk::ThreadBusinessSourceOfFunds
- Inherits:
-
Object
- Object
- UnitOpenapiRubySdk::ThreadBusinessSourceOfFunds
- Defined in:
- lib/unit_openapi_ruby_sdk/models/thread_business_source_of_funds.rb
Constant Summary collapse
- SALES_OF_GOODS =
"SalesOfGoods".freeze
- SALES_OF_SERVICES =
"SalesOfServices".freeze
- CUSTOMER_PAYMENTS =
"CustomerPayments".freeze
- INVESTMENT_CAPITAL =
"InvestmentCapital".freeze
- BUSINESS_LOANS =
"BusinessLoans".freeze
- OWNER_CONTRIBUTIONS =
"OwnerContributions".freeze
- FRANCHISE_REVENUE =
"FranchiseRevenue".freeze
- RENTAL_INCOME =
"RentalIncome".freeze
- GOVERNMENT_CONTRACTS_OR_GRANTS =
"GovernmentContractsOrGrants".freeze
- DONATIONS_OR_FUNDRAISING =
"DonationsOrFundraising".freeze
- MEMBERSHIP_FEES_OR_SUBSCRIPTIONS =
"MembershipFeesOrSubscriptions".freeze
- LICENSING_OR_ROYALTIES =
"LicensingOrRoyalties".freeze
- COMMISSION_INCOME =
"CommissionIncome".freeze
- IMPORT_EXPORT_REVENUE =
"ImportExportRevenue".freeze
- CRYPTOCURRENCY_RELATED_ACTIVITY =
"CryptocurrencyRelatedActivity".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
34 35 36 |
# File 'lib/unit_openapi_ruby_sdk/models/thread_business_source_of_funds.rb', line 34 def self.all_vars @all_vars ||= [SALES_OF_GOODS, SALES_OF_SERVICES, CUSTOMER_PAYMENTS, INVESTMENT_CAPITAL, BUSINESS_LOANS, OWNER_CONTRIBUTIONS, FRANCHISE_REVENUE, RENTAL_INCOME, GOVERNMENT_CONTRACTS_OR_GRANTS, DONATIONS_OR_FUNDRAISING, MEMBERSHIP_FEES_OR_SUBSCRIPTIONS, LICENSING_OR_ROYALTIES, COMMISSION_INCOME, IMPORT_EXPORT_REVENUE, CRYPTOCURRENCY_RELATED_ACTIVITY].freeze end |
.build_from_hash(value) ⇒ String
Builds the enum from string
41 42 43 |
# File 'lib/unit_openapi_ruby_sdk/models/thread_business_source_of_funds.rb', line 41 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
48 49 50 51 |
# File 'lib/unit_openapi_ruby_sdk/models/thread_business_source_of_funds.rb', line 48 def build_from_hash(value) return value if ThreadBusinessSourceOfFunds.all_vars.include?(value) raise "Invalid ENUM value #{value} for class #ThreadBusinessSourceOfFunds" end |