Method: TalonOne::UpdateAccount#valid?
- Defined in:
- lib/talon_one/models/update_account.rb
#valid? ⇒ Boolean
Check to see if the all the properties in the model are valid
139 140 141 142 143 144 145 146 |
# File 'lib/talon_one/models/update_account.rb', line 139 def valid? return false if @company_name.nil? return false if @company_name.to_s.length < 1 return false if @billing_email.nil? state_validator = EnumAttributeValidator.new('String', ["active", "deactivated"]) return false unless state_validator.valid?(@state) true end |