Module: FitApi

Defined in:
lib/fit_api.rb,
lib/fit_api/router.rb,
lib/fit_api/version.rb,
lib/fit_api/controller.rb,
lib/fit_api/router/route.rb,
lib/fit_api/router/mapper.rb,
lib/fit_api/router/params.rb,
lib/fit_api/router/parser.rb

Defined Under Namespace

Modules: Router Classes: Controller, Halt

Class Method Summary collapse

Class Method Details

.appObject



20
21
22
23
# File 'lib/fit_api.rb', line 20

def self.app
  builder.run Router.method(:call)
  builder.to_app
end

.builderObject



12
13
14
# File 'lib/fit_api.rb', line 12

def self.builder
  @builder ||= Rack::Builder.new
end

.inflectorObject



25
26
27
# File 'lib/fit_api.rb', line 25

def self.inflector
  @inflector ||= Dry::Inflector.new
end

.use(middleware, *args, &block) ⇒ Object



16
17
18
# File 'lib/fit_api.rb', line 16

def self.use(middleware, *args, &block)
  builder.use(middleware, *args, &block)
end

.versionObject



4
5
6
# File 'lib/fit_api/version.rb', line 4

def self.version
  "1.1.3"
end