Method: TogaiClient::CreateAccountRequest#valid?

Defined in:
lib/togai_client/models/create_account_request.rb

#valid?Boolean

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

Returns:

  • (Boolean)

    true if the model is valid



124
125
126
127
128
129
130
131
132
133
# File 'lib/togai_client/models/create_account_request.rb', line 124

def valid?
  return false if @id.nil?
  return false if @id.to_s.length > 50
  return false if @name.nil?
  return false if @name.to_s.length > 255
  return false if @name.to_s.length < 3
  return false if !@aliases.nil? && @aliases.length > 10
  return false if !@aliases.nil? && @aliases.length < 0
  true
end