Method: PureCloud::Metabase#valid?

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

#valid?Boolean

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

Returns:

  • (Boolean)

    true if the model is valid



153
154
155
156
157
158
159
160
161
162
# File 'lib/purecloudplatformclientv2/models/metabase.rb', line 153

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

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