Method: OryClient::MemberInvite#valid?

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

#valid?Boolean

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

Returns:

  • (Boolean)

    true if the model is valid



201
202
203
204
205
206
207
208
209
210
211
212
213
# File 'lib/ory-client/models/member_invite.rb', line 201

def valid?
  return false if @created_at.nil?
  return false if @id.nil?
  return false if @invitee_email.nil?
  return false if @owner_email.nil?
  return false if @owner_id.nil?
  return false if @project_id.nil?
  return false if @status.nil?
  status_validator = EnumAttributeValidator.new('String', ["pending", "accepted", "declined", "expired", "cancelled", "removed"])
  return false unless status_validator.valid?(@status)
  return false if @updated_at.nil?
  true
end