Class: UnitOpenapiRubySdk::BusinessVertical

Inherits:
Object
  • Object
show all
Defined in:
lib/unit_openapi_ruby_sdk/models/business_vertical.rb

Constant Summary collapse

ADULT_ENTERTAINMENT_DATING_OR_ESCORT_SERVICES =
"AdultEntertainmentDatingOrEscortServices".freeze
AGRICULTURE_FORESTRY_FISHING_OR_HUNTING =
"AgricultureForestryFishingOrHunting".freeze
ARTS_ENTERTAINMENT_AND_RECREATION =
"ArtsEntertainmentAndRecreation".freeze
BUSINESS_SUPPORT_OR_BUILDING_SERVICES =
"BusinessSupportOrBuildingServices".freeze
CANNABIS =
"Cannabis".freeze
CONSTRUCTION =
"Construction".freeze
DIRECT_MARKETING_OR_TELEMARKETING =
"DirectMarketingOrTelemarketing".freeze
EDUCATIONAL_SERVICES =
"EducationalServices".freeze
FINANCIAL_SERVICES_CRYPTOCURRENCY =
"FinancialServicesCryptocurrency".freeze
FINANCIAL_SERVICES_DEBIT_COLLECTION_OR_CONSOLIDATION =
"FinancialServicesDebitCollectionOrConsolidation".freeze
FINANCIAL_SERVICES_MONEY_SERVICES_BUSINESS_OR_CURRENCY_EXCHANGE =
"FinancialServicesMoneyServicesBusinessOrCurrencyExchange".freeze
FINANCIAL_SERVICES_OTHER =
"FinancialServicesOther".freeze
FINANCIAL_SERVICES_PAYDAY_LENDING =
"FinancialServicesPaydayLending".freeze
GAMING_OR_GAMBLING =
"GamingOrGambling".freeze
HEALTH_CARE_AND_SOCIAL_ASSISTANCE =
"HealthCareAndSocialAssistance".freeze
HOSPITALITY_ACCOMMODATION_OR_FOOD_SERVICES =
"HospitalityAccommodationOrFoodServices".freeze
"LegalAccountingConsultingOrComputerProgramming".freeze
MANUFACTURING =
"Manufacturing".freeze
MINING =
"Mining".freeze
NUTRACEUTICALS =
"Nutraceuticals".freeze
PERSONAL_CARE_SERVICES =
"PersonalCareServices".freeze
PUBLIC_ADMINISTRATION =
"PublicAdministration".freeze
REAL_ESTATE =
"RealEstate".freeze
RELIGIOUS_CIVIC_AND_SOCIAL_ORGANIZATIONS =
"ReligiousCivicAndSocialOrganizations".freeze
REPAIR_AND_MAINTENANCE =
"RepairAndMaintenance".freeze
RETAIL_TRADE =
"RetailTrade".freeze
TECHNOLOGY_MEDIA_OR_TELECOM =
"TechnologyMediaOrTelecom".freeze
TRANSPORTATION_OR_WAREHOUSING =
"TransportationOrWarehousing".freeze
UTILITIES =
"Utilities".freeze
WHOLESALE_TRADE =
"WholesaleTrade".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



56
57
58
# File 'lib/unit_openapi_ruby_sdk/models/business_vertical.rb', line 56

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



63
64
65
66
# File 'lib/unit_openapi_ruby_sdk/models/business_vertical.rb', line 63

def build_from_hash(value)
  return value if BusinessVertical.all_vars.include?(value)
  raise "Invalid ENUM value #{value} for class #BusinessVertical"
end