Passed
Pull Request — master (#2)
by Khalil
01:10
created

src/Suggest.js   A

Complexity

Total Complexity 3
Complexity/F 1

Size

Lines of Code 18
Function Count 3

Duplication

Duplicated Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
cc 0
wmc 3
eloc 9
c 1
b 0
f 0
nc 1
mnd 0
bc 3
fnc 3
dl 0
loc 18
rs 10
bpm 1
cpm 1
noi 0
1
/**
2
 * @author Jinzulen
3
 * @license Apache 2.0
4
 * TenorJS - Lightweight NodeJS wrapper around the Tenor.com API.
5
 */
6
7
module.exports = function (Credentials, Utilities)
8
{
9
	const Methods = {};
10
11
	Methods.Suggestions = function (Term, Callback)
12
	{
13
		return require("./Methods/Suggest/Suggestions")(Credentials,
14
			Utilities, Term, Callback);
15
	};
16
17
	Methods.Autocomplete = function (Key, Callback)
18
	{
19
		return require("./Methods/Suggest/Autocomplete")(Credentials,
20
			Utilities, Key, Callback);
21
	};
22
23
	return Methods;
24
};