Method: PureCloud::ImportStatus#valid?

Defined in:
lib/purecloudplatformclientv2/models/import_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



97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
# File 'lib/purecloudplatformclientv2/models/import_status.rb', line 97

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

  allowed_values = ["IN_PROGRESS", "FAILED"]
  if @state && !allowed_values.include?(@state)
    return false
  end
  if @total_records.nil?
    return false
  end

  if @completed_records.nil?
    return false
  end

  if @percent_complete.nil?
    return false
  end

end