Method: PureCloud::CampaignInteraction#valid?

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

#valid?Boolean

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

Returns:

  • (Boolean)

    true if the model is valid



232
233
234
235
236
237
# File 'lib/purecloudplatformclientv2/models/campaign_interaction.rb', line 232

def valid?
  allowed_values = ["DISCONNECT", "LIVE_VOICE", "BUSY", "MACHINE", "NO_ANSWER", "SIT_CALLABLE", "SIT_UNCALLABLE", "FAX"]
  if @disposition && !allowed_values.include?(@disposition)
    return false
  end
end