Class: Echochamber::User
- Inherits:
-
Hash
- Object
- Hash
- Echochamber::User
- Includes:
- Validatable
- Defined in:
- lib/echochamber/user.rb
Instance Method Summary (collapse)
-
- (String) initialize(params)
constructor
Creates a user for the current application.
Methods included from Validatable
#require_exactly_one, #require_keys, #validate_field
Constructor Details
- (String) initialize(params)
Creates a user for the current application
23 24 25 26 |
# File 'lib/echochamber/user.rb', line 23 def initialize(params) require_keys([:firstName, :lastName, :email, :password], params) merge!(params) end |