MCPcopy Create free account
hub / github.com/bailicangdu/node-elm / constructor

Method constructor

controller/ugc/rating.js:6–11  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

4
5class Rating {
6 constructor(){
7 this.type = ['ratings', 'scores', 'tags'];
8 this.getRatings = this.getRatings.bind(this);
9 this.getScores = this.getScores.bind(this);
10 this.getTags = this.getTags.bind(this);
11 }
12 async initData(restaurant_id){
13 try{
14 const status = await RatingModel.initData(restaurant_id);

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected