Method: PureCloud::ActivityCode#valid?

Defined in:
lib/purecloudplatformclientv2/models/activity_code.rb

#valid?Boolean

Check to see if the all the properties in the model are valid

Returns:

  • (Boolean)

    true if the model is valid



125
126
127
128
129
130
# File 'lib/purecloudplatformclientv2/models/activity_code.rb', line 125

def valid?
  allowed_values = ["OnQueueWork", "Break", "Meal", "Meeting", "OffQueueWork", "TimeOff", "Training", "Unavailable"]
  if @category && !allowed_values.include?(@category)
    return false
  end
end