class Board {
constructor() {
//this.data = result getReferral
}
getReferral(url) {
return fetch(url)
.then(response => response.json())
.then(data => console.data(data))
}
}
const ruler = new Board();
const referral = ruler.getReferral();
console.log(ruler.data);