Class: UserTasks

Inherits:
Volt::TaskHandler show all
Defined in:
app/volt/tasks/user_tasks.rb

Instance Method Summary collapse

Methods inherited from Volt::TaskHandler

inherited, #initialize, known_handlers, method_missing, #store

Constructor Details

This class inherits a constructor from Volt::TaskHandler

Instance Method Details

#create_user(username, password) ⇒ Object

Login a user, takes a username and password



3
4
5
# File 'app/volt/tasks/user_tasks.rb', line 3

def create_user(username, password)
  $page.store._users << { email: username, password: password }
end