class User

Public Instance Methods

preferences() click to toggle source
# File lib/mattermost/models/user.rb, line 12
def preferences
  Mattermost.get("/preferences")
end
reset_password(new_password) click to toggle source
# File lib/mattermost/models/user.rb, line 3
def reset_password(new_password)
  payload = {:name => Mattermost.team.name, :user_id => self.id, :new_password => new_password}
  Mattermost.post("/users/reset_password", :body => payload.to_json)
end
status() click to toggle source
# File lib/mattermost/models/user.rb, line 8
def status
  Mattermost::User.status([self.id])[self.id]
end