summaryrefslogtreecommitdiff
path: root/app/assets/javascripts/boards/models/assignee.js
blob: 5f5758583bbef8db6dc53444d697715cc7395f95 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
export default class ListAssignee {
  constructor(obj) {
    this.id = obj.id;
    this.name = obj.name;
    this.username = obj.username;
    this.avatar = obj.avatar_url || obj.avatar || gon.default_avatar_url;
    this.path = obj.path;
    this.state = obj.state;
    this.webUrl = obj.web_url || obj.webUrl;
  }
}

window.ListAssignee = ListAssignee;