Module: TentD::API::Router

Included in:
TentD::API, Apps, Followers, Followings, Groups, Posts, Profile
Defined in:
lib/tentd/api/router/extract_params.rb,
lib/tentd/api/router/caching_headers.rb,
lib/tentd/api/router/serialize_response.rb,
lib/tentd/api/router.rb

Defined Under Namespace

Modules: ClassMethods Classes: CachingHeaders, ExtractParams, SerializeResponse

Class Method Summary collapse

Instance Method Summary collapse

Class Method Details

.included(base) ⇒ Object



30
31
32
# File 'lib/tentd/api/router.rb', line 30

def self.included(base)
  base.extend(ClassMethods)
end

Instance Method Details

#call(env) ⇒ Object



34
35
36
# File 'lib/tentd/api/router.rb', line 34

def call(env)
  self.class.routes.call(env)
end