Class: UnitOpenapiRubySdk::Occupation

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

Constant Summary collapse

ARCHITECT_OR_ENGINEER =
"ArchitectOrEngineer".freeze
BUSINESS_ANALYST_ACCOUNTANT_OR_FINANCIAL_ADVISOR =
"BusinessAnalystAccountantOrFinancialAdvisor".freeze
COMMUNITY_AND_SOCIAL_SERVICES_WORKER =
"CommunityAndSocialServicesWorker".freeze
CONSTRUCTION_MECHANIC_OR_MAINTENANCE_WORKER =
"ConstructionMechanicOrMaintenanceWorker".freeze
DOCTOR =
"Doctor".freeze
EDUCATOR =
"Educator".freeze
ENTERTAINMENT_SPORTS_ARTS_OR_MEDIA =
"EntertainmentSportsArtsOrMedia".freeze
EXECUTIVE_OR_MANAGER =
"ExecutiveOrManager".freeze
FARMER_FISHERMAN_FORESTER =
"FarmerFishermanForester".freeze
FOOD_SERVICE_WORKER =
"FoodServiceWorker".freeze
GIG_WORKER =
"GigWorker".freeze
HOSPITALITY_OFFICE_OR_ADMINISTRATIVE_SUPPORT_WORKER =
"HospitalityOfficeOrAdministrativeSupportWorker".freeze
HOUSEHOLD_MANAGER =
"HouseholdManager".freeze
JANITOR_HOUSEKEEPER_LANDSCAPER =
"JanitorHousekeeperLandscaper".freeze
LAWYER =
"Lawyer".freeze
MANUFACTURING_OR_PRODUCTION_WORKER =
"ManufacturingOrProductionWorker".freeze
MILITARY_OR_PUBLIC_SAFETY =
"MilitaryOrPublicSafety".freeze
NURSE_HEALTHCARE_TECHNICIAN_OR_HEALTHCARE_SUPPORT =
"NurseHealthcareTechnicianOrHealthcareSupport".freeze
PERSONAL_CARE_OR_SERVICE_WORKER =
"PersonalCareOrServiceWorker".freeze
PILOT_DRIVER_OPERATOR =
"PilotDriverOperator".freeze
SALES_REPRESENTATIVE_BROKER_AGENT =
"SalesRepresentativeBrokerAgent".freeze
SCIENTIST_OR_TECHNOLOGIST =
"ScientistOrTechnologist".freeze
STUDENT =
"Student".freeze

Class Method Summary collapse

Instance Method Summary collapse

Class Method Details

.build_from_hash(value) ⇒ String

Builds the enum from string



49
50
51
# File 'lib/unit_openapi_ruby_sdk/models/occupation.rb', line 49

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



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

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