Skip to content

Commit

Permalink
Merge pull request #171 from partik03/linode_dummy_class
Browse files Browse the repository at this point in the history
Linode dummy class
  • Loading branch information
mbcse authored Aug 25, 2023
2 parents b358ba1 + 8f857f7 commit b9fc456
Showing 1 changed file with 23 additions and 0 deletions.
23 changes: 23 additions & 0 deletions generator/dummyClasses/linode.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
class ClassName {
/**
*
* @param {module} do Linode SDK
* @param {object} options SDK options
*/
constructor(linodeSdk, linodeToken) {
this._linode = linodeSdk;
this._linodeToken = linodeToken;
}

function() {
this._linode.setToken(this._linodeToken);
return new Promise((resolve, reject) => {
this._linode
.SDKFunctionName()
.then(data => resolve(data))
.catch(err => reject(err));
});
}
}

module.exports = ClassName;

0 comments on commit b9fc456

Please sign in to comment.