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:

  • (Boolean)

    true if the model is valid



230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
# File 'lib/ory-client/models/message.rb', line 230

def valid?
  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