Advertisement
Guest User

Untitled

a guest
Jan 26th, 2017
91
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.47 KB | None | 0 0
  1. init(node: Node, in context: Context) throws {
  2. id = node["id"]
  3. username = try node.extract("username")
  4. password = try node.extract("password")
  5. facebookID = try node.extract("facebook_id")
  6. googleID = try node.extract("google_id")
  7. }
  8.  
  9. func makeNode(context: Context) throws -> Node {
  10. return try Node(node: [
  11. "id": id,
  12. "username": username,
  13. "password": password,
  14. "facebook_id": facebookID,
  15. "google_id": googleID,
  16. ])
  17. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement