cylon/lib/test/loopback.js

22 lines
476 B
JavaScript
Raw Normal View History

2014-02-27 22:44:53 +08:00
"use strict";
2014-12-16 03:15:29 +08:00
var Adaptor = require("../adaptor"),
Utils = require("../utils");
2014-05-07 09:18:20 +08:00
var Loopback = module.exports = function Loopback() {
Loopback.__super__.constructor.apply(this, arguments);
};
2014-02-27 22:44:53 +08:00
Utils.subclass(Loopback, Adaptor);
2014-02-27 22:44:53 +08:00
Loopback.prototype.connect = function(callback) {
callback();
};
Loopback.prototype.disconnect = function(callback) {
callback();
};
2014-12-16 03:15:29 +08:00
Loopback.adaptors = ["loopback"];
Loopback.adaptor = function(opts) { return new Loopback(opts); };