Class: MrMurano::User

Inherits:
UserBase show all
Defined in:
lib/MrMurano/Solution-Users.rb

Overview

…/user :nocov:

Instance Method Summary collapse

Methods inherited from UserBase

#download, #fetch, #list, #localitems, #remove, #removelocal, #tolocalpath

Methods inherited from SolutionBase

#endPoint

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

#initializeUser

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

Parameters:

  • modify

    Bool: True if item exists already and this is changing it



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