Method: TalonOne::Entity#valid?

Defined in:
lib/talon_one/models/entity.rb

#valid?Boolean

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

Returns:

  • (Boolean)

    true if the model is valid



86
87
88
89
90
# File 'lib/talon_one/models/entity.rb', line 86

def valid?
  return false if @id.nil?
  return false if @created.nil?
  true
end