class User

Public Instance Methods

reset_id() click to toggle source
# File lib/africompta/entities/users.rb, line 63
def reset_id
  self.full = Digest::MD5.hexdigest((rand 2**128).to_s).to_s
end
update_account_index() click to toggle source
# File lib/africompta/entities/users.rb, line 54
def update_account_index
  self.account_index = Users.match_by_name('local').account_index - 1
end
update_all() click to toggle source
# File lib/africompta/entities/users.rb, line 58
def update_all
  update_movement_index
  update_account_index
end
update_movement_index() click to toggle source
# File lib/africompta/entities/users.rb, line 50
def update_movement_index
  self.movement_index = Users.match_by_name('local').movement_index - 1
end