Method: PureCloud::RoutingSkill#valid?

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

#valid?Boolean

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

Returns:

  • (Boolean)

    true if the model is valid



106
107
108
109
110
111
112
113
114
115
# File 'lib/purecloudplatformclientv2/models/routing_skill.rb', line 106

def valid?
  if @name.nil?
    return false
  end

  allowed_values = ["active", "inactive", "deleted"]
  if @state && !allowed_values.include?(@state)
    return false
  end
end