Class: SimpleCrowd::User

Inherits:
CrowdEntity show all
Defined in:
lib/simple_crowd/user.rb

Instance Method Summary collapse

Methods inherited from CrowdEntity

#[], attribute, attributes, #clean, defaults, #dirty?, #dirty_attributes, #dirty_properties, from_soap, #initialize, #inspect, properties, property, search_restriction_for, soap_key_for, #to_hash, #to_soap, #update, #valid?

Constructor Details

This class inherits a constructor from SimpleCrowd::CrowdEntity

Instance Method Details

#errorsObject



17
18
19
20
21
# File 'lib/simple_crowd/user.rb', line 17

def errors
  errors = super
  errors[:username] = "cannot be blank" if username.to_s == ""
  errors
end