Class: VSphereAutomation::Appliance::ApplianceRecoveryBackupSchedulesDayOfWeek
- Inherits:
-
Object
- Object
- VSphereAutomation::Appliance::ApplianceRecoveryBackupSchedulesDayOfWeek
- Defined in:
- lib/vsphere-automation-appliance/models/appliance_recovery_backup_schedules_day_of_week.rb
Constant Summary collapse
- MONDAY =
"MONDAY".freeze
- TUESDAY =
"TUESDAY".freeze
- WEDNESDAY =
"WEDNESDAY".freeze
- THURSDAY =
"THURSDAY".freeze
- FRIDAY =
"FRIDAY".freeze
- SATURDAY =
"SATURDAY".freeze
- SUNDAY =
"SUNDAY".freeze
Instance Method Summary collapse
-
#build_from_hash(value) ⇒ String
Builds the enum from string.
Instance Method Details
#build_from_hash(value) ⇒ String
Builds the enum from string
26 27 28 29 30 |
# File 'lib/vsphere-automation-appliance/models/appliance_recovery_backup_schedules_day_of_week.rb', line 26 def build_from_hash(value) constantValues = ApplianceRecoveryBackupSchedulesDayOfWeek.constants.select { |c| ApplianceRecoveryBackupSchedulesDayOfWeek::const_get(c) == value } raise "Invalid ENUM value #{value} for class #ApplianceRecoveryBackupSchedulesDayOfWeek" if constantValues.empty? value end |