UNPKG

gitlab

Version:
182 lines (120 loc) 6.43 kB
<!DOCTYPE html> <html> <head> <title>ApiBase.coffee</title> <meta http-equiv="content-type" content="text/html; charset=UTF-8"> <meta name="viewport" content="width=device-width, target-densitydpi=160dpi, initial-scale=1.0; maximum-scale=1.0; user-scalable=0;"> <link rel="stylesheet" media="all" href="docco.css" /> </head> <body> <div id="container"> <div id="background"></div> <ul id="jump_to"> <li> <a class="large" href="javascript:void(0);">Jump To &hellip;</a> <a class="small" href="javascript:void(0);">+</a> <div id="jump_wrapper"> <div id="jump_page"> <a class="source" href="ApiBase.html"> ApiBase.coffee </a> <a class="source" href="ApiBaseHTTP.html"> ApiBaseHTTP.coffee </a> <a class="source" href="ApiV3.html"> ApiV3.coffee </a> <a class="source" href="BaseModel.html"> BaseModel.coffee </a> <a class="source" href="Groups.html"> Groups.coffee </a> <a class="source" href="Issues.html"> Issues.coffee </a> <a class="source" href="ProjectDeployKeys.html"> ProjectDeployKeys.coffee </a> <a class="source" href="ProjectHooks.html"> ProjectHooks.coffee </a> <a class="source" href="ProjectIssues.html"> ProjectIssues.coffee </a> <a class="source" href="ProjectMembers.html"> ProjectMembers.coffee </a> <a class="source" href="ProjectMergeRequests.html"> ProjectMergeRequests.coffee </a> <a class="source" href="ProjectMilestones.html"> ProjectMilestones.coffee </a> <a class="source" href="ProjectRepository.html"> ProjectRepository.coffee </a> <a class="source" href="Projects.html"> Projects.coffee </a> <a class="source" href="Users.html"> Users.coffee </a> <a class="source" href="Utils.html"> Utils.coffee </a> <a class="source" href="index.html"> index.coffee </a> </div> </li> </ul> <ul class="sections"> <li id="title"> <div class="annotation"> <h1>ApiBase.coffee</h1> </div> </li> <li id="section-1"> <div class="annotation"> <div class="pilwrap "> <a class="pilcrow" href="#section-1">&#182;</a> </div> </div> <div class="content"><div class='highlight'><pre>debug = <span class="hljs-built_in">require</span>(<span class="hljs-string">'debug'</span>) <span class="hljs-string">'gitlab:ApiBase'</span> <span class="hljs-class"><span class="hljs-keyword">class</span> <span class="hljs-title">module</span>.<span class="hljs-title">exports</span>.<span class="hljs-title">ApiBase</span></span> <span class="hljs-attribute">constructor</span>: <span class="hljs-function"><span class="hljs-params">(<span class="hljs-property">@options</span>)</span> -&gt;</span> <span class="hljs-keyword">do</span> <span class="hljs-property">@handleOptions</span> <span class="hljs-keyword">do</span> <span class="hljs-property">@init</span> debug <span class="hljs-string">"constructor()"</span> <span class="hljs-attribute">handleOptions</span>: <span class="hljs-function">=&gt;</span> <span class="hljs-property">@options</span>.verbose ?= <span class="hljs-literal">false</span> debug <span class="hljs-string">"handleOptions()"</span> <span class="hljs-attribute">init</span>: <span class="hljs-function">=&gt;</span> <span class="hljs-property">@client</span> = @ debug <span class="hljs-string">"init()"</span> <span class="hljs-property">@groups</span> = <span class="hljs-built_in">require</span>(<span class="hljs-string">'./Models/Groups'</span>) <span class="hljs-property">@client</span> <span class="hljs-property">@projects</span> = <span class="hljs-built_in">require</span>(<span class="hljs-string">'./Models/Projects'</span>) <span class="hljs-property">@client</span> <span class="hljs-property">@issues</span> = <span class="hljs-built_in">require</span>(<span class="hljs-string">'./Models/Issues'</span>) <span class="hljs-property">@client</span></pre></div></div> </li> <li id="section-2"> <div class="annotation"> <div class="pilwrap "> <a class="pilcrow" href="#section-2">&#182;</a> </div> <p>@repositories = require(‘./Models/Repositories’) @client</p> </div> <div class="content"><div class='highlight'><pre> <span class="hljs-property">@users</span> = <span class="hljs-built_in">require</span>(<span class="hljs-string">'./Models/Users'</span>) <span class="hljs-property">@client</span></pre></div></div> </li> <li id="section-3"> <div class="annotation"> <div class="pilwrap "> <a class="pilcrow" href="#section-3">&#182;</a> </div> <p>@mergeRequests = require(‘./Models/MergeRequests’) @client</p> </div> </li> </ul> </div> </body> </html>