Method: OryClient::Message#valid?

Defined in:
lib/ory-client/models/message.rb

#valid?Boolean

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

Returns:

  • true if the model is valid



257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
# File 'lib/ory-client/models/message.rb', line 257

def valid?
  warn '[DEPRECATED] the `valid?` method is obsolete'
  return false if @body.nil?
  return false if @created_at.nil?
  return false if @id.nil?
  return false if @recipient.nil?
  return false if @send_count.nil?
  return false if @status.nil?
  return false if @subject.nil?
  return false if @template_type.nil?
  template_type_validator = EnumAttributeValidator.new('String', ["recovery_invalid", "recovery_valid", "recovery_code_invalid", "recovery_code_valid", "verification_invalid", "verification_valid", "verification_code_invalid", "verification_code_valid", "stub", "login_code_valid", "registration_code_valid"])
  return false unless template_type_validator.valid?(@template_type)
  return false if @type.nil?
  return false if @updated_at.nil?
  true
end