Method: PureCloud::OutboundRouteBase#valid?

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

#valid?Boolean

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

Returns:

  • (Boolean)

    true if the model is valid



191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
# File 'lib/purecloudplatformclientv2/models/outbound_route_base.rb', line 191

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

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

  allowed_values = ["SEQUENTIAL", "RANDOM"]
  if @distribution && !allowed_values.include?(@distribution)
    return false
  end
end