Class: Cyclid::API::Plugins::Api

Inherits:
Base
  • Object
show all
Defined in:
app/cyclid/plugins/api.rb

Overview

Base class for Api plugins

Direct Known Subclasses

Github

Class Method Summary collapse

Methods inherited from Base

config?, config_schema, default_config, get_config, register_plugin, set_config, update_config

Class Method Details

.controllerObject

Return a new instance of the Sinatra controller



175
176
177
# File 'app/cyclid/plugins/api.rb', line 175

def self.controller
  return ApiExtension::Controller.new(ApiExtension::Methods)
end

.human_nameObject

Return the ‘human’ name for the plugin type



180
181
182
# File 'app/cyclid/plugins/api.rb', line 180

def self.human_name
  'api'
end