Class: MrMurano::User
- Inherits:
-
UserBase
- Object
- SolutionBase
- UserBase
- MrMurano::User
- Defined in:
- lib/MrMurano/Solution-Users.rb
Overview
…/user :nocov:
Instance Method Summary collapse
-
#initialize ⇒ User
constructor
A new instance of User.
- #synckey(item) ⇒ Object
- #upload(local, remote, modify) ⇒ Object
Methods inherited from UserBase
#download, #fetch, #list, #localitems, #remove, #removelocal, #tolocalpath
Methods inherited from SolutionBase
Methods included from SyncUpDown
#docmp, #dodiff, #download, #ignoring, #list, #localitems, #locallist, #remove, #removelocal, #searchFor, #status, #syncdown, #syncup, #toRemoteItem, #tolocalname, #tolocalpath
Methods included from Verbose
#debug, #error, #outf, #tabularize, #verbose, #warning
Methods included from Http
#curldebug, #delete, #get, #http, #http_reset, #isJSON, #json_opts, #post, #postf, #put, #set_def_headers, #showHttpError, #token, #workit
Constructor Details
#initialize ⇒ User
Returns a new instance of User.
111 112 113 114 115 |
# File 'lib/MrMurano/Solution-Users.rb', line 111 def initialize super @uriparts << 'user' @location = $cfg['location.users'] end |
Instance Method Details
#synckey(item) ⇒ Object
124 125 126 |
# File 'lib/MrMurano/Solution-Users.rb', line 124 def synckey(item) item[:email] end |
#upload(local, remote, modify) ⇒ Object
118 119 120 121 122 |
# File 'lib/MrMurano/Solution-Users.rb', line 118 def upload(local, remote, modify) # TODO figure out APIs for updating users. warning "Updating Users isn't working currently." # post does work if the :password field is set. end |