Module: Pult::Api

Defined in:
lib/pult/api.rb,
lib/init/struct.rb

Defined Under Namespace

Modules: Server Classes: Drawer

Constant Summary collapse

API =
Drawer

Class Method Summary collapse

Class Method Details

.init!(panel) ⇒ Object



5
6
7
8
9
# File 'lib/pult/api.rb', line 5

def self.init! panel
  API.draw! panel

  API.add_swagger_documentation
end

.server!(*args) ⇒ Object



11
12
13
# File 'lib/pult/api.rb', line 11

def self.server! *args
  Server.run! *args, api: API
end