Class: UnitOpenapiRubySdk::ThreadBusinessSourceOfFunds

Inherits:
Object
  • Object
show all
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
"CryptocurrencyRelatedActivity".freeze

Class Method Summary collapse

Instance Method Summary collapse

Class 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



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

Parameters:

  • The (String)

    enum value in the form of the string

Returns:

  • (String)

    The enum value



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