Method: OpenapiClient::OrganizationCreate#valid?

Defined in:
lib/openapi_client/models/organization_create.rb

#valid?Boolean

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

Returns:

  • (Boolean)

    true if the model is valid



111
112
113
114
115
116
117
# File 'lib/openapi_client/models/organization_create.rb', line 111

def valid?
  return false if @key.nil?
  return false if @key !~ Regexp.new(/^[A-Za-z0-9\-_]+$/)
  return false if @name.nil?
  return false if @name !~ Regexp.new(/^[A-Za-z0-9\.\-\_\ ]+$/)
  true
end