Method: PureCloud::UserSearchRequest#valid?

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

#valid?Boolean

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

Returns:

  • (Boolean)

    true if the model is valid



109
110
111
112
113
114
# File 'lib/purecloudplatformclientv2/models/user_search_request.rb', line 109

def valid?
  allowed_values = ["ASC", "DESC", "SCORE"]
  if @sort_order && !allowed_values.include?(@sort_order)
    return false
  end
end