• Jump To … +
    ApiBase.coffee ApiBaseHTTP.coffee ApiV3.coffee BaseModel.coffee Groups.coffee Issues.coffee ProjectDeployKeys.coffee ProjectHooks.coffee ProjectIssues.coffee ProjectMembers.coffee ProjectMergeRequests.coffee ProjectMilestones.coffee ProjectRepository.coffee Projects.coffee Users.coffee Utils.coffee index.coffee
  • BaseModel.coffee

  • ¶
    debug = require('debug') 'gitlab:BaseModel'
    
    
    class module.exports
      constructor: (@client) ->
        do @_init
    
      load: (model) =>
        require("./Models/#{model}") @client
    
      _init: =>
        @debug =   require('debug') "gitlab:Models:#{@constructor.name}"
    
        @get =     @client.get
        @post =    @client.post
        @put =     @client.put
        @delete =  @client.delete
    
        do @init if @init?