Method: PureCloud::RoutingStatus#valid?

Defined in:
lib/purecloudclient_v2a/models/routing_status.rb

#valid?Boolean

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

Returns:

  • (Boolean)

    true if the model is valid



105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
# File 'lib/purecloudclient_v2a/models/routing_status.rb', line 105

def valid?
  
  
  
  
  
  
  
  allowed_values = ["OFF_QUEUE", "IDLE", "INTERACTING", "NOT_RESPONDING", "COMMUNICATING"]
  if @status && !allowed_values.include?(@status)
    return false
  end
  
  
  
  
  
  
  
end