Method: OryClient::UiText#valid?

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

#valid?Boolean

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

Returns:

  • (Boolean)

    true if the model is valid



135
136
137
138
139
140
141
142
# File 'lib/ory-client/models/ui_text.rb', line 135

def valid?
  return false if @id.nil?
  return false if @text.nil?
  return false if @type.nil?
  type_validator = EnumAttributeValidator.new('String', ["info", "error", "success"])
  return false unless type_validator.valid?(@type)
  true
end